View previous topic :: View next topic |
Author |
Message |
norg Tux's lil' helper
Joined: 23 Aug 2010 Posts: 104 Location: Augsburg (Germany)
|
Posted: Sun Feb 10, 2013 9:15 pm Post subject: Getting grub2 running with encrypted root fails |
|
|
Hi,
i'm using gentoo since several years and i have several systems encrypted and working with grub1 and now i wanted to test grub2. I read the gentoo wiki and also the archlinux wiki and i tried this to get it working:
Code: | grub2-install --modules="part_gpt fat ext2" --no-floppy /dev/sda |
in /etc/default/grub i have:
Code: | GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda3:root" |
and then i run:
Code: | grub2-mkconfig -o /boot/grub2/grub.cfg |
But when i reboot, the system says it won't recognize root. So i got it working with this:
Code: | GRUB_DEVICE="/dev/mapper/root"
GRUB_CMDLINE_LINUX_DEFAULT="crypt_root=/dev/sda3" |
Why is the second version working? Why is "cryptdevice" not working, what did i miss? I'm just guessing for now that "cryptdevice" instead of "crypt_root" is not supported by genkernel (as i didn't find it in the source)
thanks |
|
Back to top |
|
|
windex n00b
Joined: 09 Dec 2012 Posts: 70
|
Posted: Mon Feb 11, 2013 6:18 pm Post subject: |
|
|
Thank you for your inquiry. We'll see if we can't get this sorted out. Can you please post /var/log/messages? Might be a clue in there. |
|
Back to top |
|
|
norg Tux's lil' helper
Joined: 23 Aug 2010 Posts: 104 Location: Augsburg (Germany)
|
Posted: Mon Feb 11, 2013 7:01 pm Post subject: |
|
|
just a testing system for now. but i emerge syslog and post it
as i said it's working with crypt_root and i guess that genkernel just doesn't support cryptdevice as i searched through the sourcecode. |
|
Back to top |
|
|
gabrielg Tux's lil' helper
Joined: 16 Nov 2012 Posts: 134
|
Posted: Tue Feb 12, 2013 3:07 pm Post subject: |
|
|
If you are using genkernel, then you have to use crypt_root, as specified in the manual.
I'm assuming that your kernel is in your boot partition (as opposed to the root partition), hence grub2 doesn't have to do any decryption. |
|
Back to top |
|
|
norg Tux's lil' helper
Joined: 23 Aug 2010 Posts: 104 Location: Augsburg (Germany)
|
Posted: Wed Feb 13, 2013 7:07 pm Post subject: |
|
|
yes, was just confusing with the documentation from other distris. |
|
Back to top |
|
|
|