Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[encryption] baselayout2 for dmcrypt or other solutions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Gabriel_Blake
Guru
Guru


Joined: 16 Sep 2007
Posts: 362

PostPosted: Tue Nov 16, 2010 6:19 pm    Post subject: [encryption] baselayout2 for dmcrypt or other solutions Reply with quote

Hi.

I'm moving my data to a new laptop and wanted to encrypt my two user partitions (separately) to that they are mounted after login (the user password is pass-phrase). I was following this guide, but at one point I've realized that running dmcrypt requires baselayout2.

I've heard that baselayout2 is very stable, but still... installing an unstable core package doesn't seem like a good idea.

Is it safe to use baselayout2 or should I use a different encrypting method (and if so, could you propose any) ??
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Tue Nov 16, 2010 8:12 pm    Post subject: Reply with quote

I'd say just use it. I'm using it for years with dmcrypt/LUKS and only had a little problem once (lvm2-update) which was easily fixed. In my experience, it's the most stable core-package not labeled stable and I'm pretty sure that's not just my opinion.
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 513
Location: San Diego, California USA

PostPosted: Wed Nov 17, 2010 5:52 am    Post subject: Reply with quote

You don't need baselayout-2 to do encryption. Baselayout-1 will do it as well. Follow the steps in the guide you mentioned except for step 4. Instead, modify the file /etc/conf.d/dmcrypt. There are plenty of examples in the file. Baselayout-1 reads that file at system startup time. Everything else is the same.
Back to top
View user's profile Send private message
Gabriel_Blake
Guru
Guru


Joined: 16 Sep 2007
Posts: 362

PostPosted: Wed Nov 17, 2010 7:39 pm    Post subject: Reply with quote

:arrow: gentoo_ram The thing is that running /etc/init.d/dmcrypt results in an error which goes more or less like this: "dmcrypt init script is written for baselayout-2. Do not use it with baselayout-1." And the script fails.

But it doesn't matter any more sine I've emerged baselayout2 without issues, and everything is running just fine :) I'll have some more questions about encryption but that's for another thread.

Thanks everyone :)
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 513
Location: San Diego, California USA

PostPosted: Thu Nov 18, 2010 12:06 am    Post subject: Reply with quote

With baselayout-1 you don't need to run /etc/init.d/dmcrypt. Baselayout-1 has built-in code that reads /etc/conf.d/dmcrypt and "just works". That's why you don't need /etc/init.d/dmcrypt in baselayout-1. I went down that whole path last week when I wanted to enable encrypted swap partitions.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum