I'm trying to boot an encrypted root filesystem off of a LUKS encrypted LVM table. The LUKS key is protected by a GPG key. I built an initramfs with dracut using both the crypt and crypt-gpg modules. The boot partition and key file are on a USB drive.
When I boot, there is a kernel panic. I've tried adding the serial and console options to grub.cfg as well as the rd.shell option, but I can't seem to get Dracut to drop to a shell so I can troubleshoot the issue. Any help would be appreciated.
Here is my grub.cfg
set timeout=3
serial --unit=0 --speed=9600
terminal --timeout=5 serial console
insmod part_gpt
insmod ext2
set root=(hostdisk//dev/sdb,gpt1)
search --no-floppy --fs-uuid --set 79d306ed-2578-4ac9-a199-6f61a6a7e64c
if loadfont /grub/unifont.pf2; then
set gfxmode=text
insmod gfxterm
insmod vbe
terminal_output gfxterm
fi
set menu_color_normal=cyan/blue
set menu_color_highlight=blue/cyan
menuentry "Funtoo Linux Dracut - vmlinuz-3.16.2-hardened-r2" {
insmod part_gpt
insmod ext2
set root=(hostdisk//dev/sdb,gpt1)
search --no-floppy --fs-uuid --set 79d306ed-2578-4ac9-a199-6f61a6a7e64c
linux /vmlinuz-3.16.2-hardened-r2 rootfstype=ext4 luks enc_root=UUID=77f735b0-3d46-4fd7-9751-34df92d460d5 lvm rd.luks.key=/boot/luks-key.gpg root=/dev/mapper/vg1-root console=tty0 console=ttyS0,9600 rd.shell
set gfxpayload=text
}
set default=0
Question
robot682
Hi,
I'm trying to boot an encrypted root filesystem off of a LUKS encrypted LVM table. The LUKS key is protected by a GPG key. I built an initramfs with dracut using both the crypt and crypt-gpg modules. The boot partition and key file are on a USB drive.
When I boot, there is a kernel panic. I've tried adding the serial and console options to grub.cfg as well as the rd.shell option, but I can't seem to get Dracut to drop to a shell so I can troubleshoot the issue. Any help would be appreciated.
Here is my grub.cfg
My fstab looks like this:
Here is the output of blkid
Link to comment
Share on other sites
1 answer to this question
Recommended Posts