View previous topic :: View next topic |
Author |
Message |
Gabriel_Blake Guru
Joined: 16 Sep 2007 Posts: 362
|
Posted: Tue Nov 16, 2010 6:19 pm Post subject: [encryption] baselayout2 for dmcrypt or other solutions |
|
|
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 |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Tue Nov 16, 2010 8:12 pm Post subject: |
|
|
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 |
|
|
gentoo_ram Guru
Joined: 25 Oct 2007 Posts: 513 Location: San Diego, California USA
|
Posted: Wed Nov 17, 2010 5:52 am Post subject: |
|
|
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 |
|
|
Gabriel_Blake Guru
Joined: 16 Sep 2007 Posts: 362
|
Posted: Wed Nov 17, 2010 7:39 pm Post subject: |
|
|
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 |
|
|
gentoo_ram Guru
Joined: 25 Oct 2007 Posts: 513 Location: San Diego, California USA
|
Posted: Thu Nov 18, 2010 12:06 am Post subject: |
|
|
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 |
|
|
|