Joined: 14 Dec 2014
|Posted: Sun Dec 14, 2014 2:51 pm Post subject: [solved] Can't boot with Dracut initrams and encrypted root
I installed a new Gentoo system on my PC with a lvm container which contains the root (btrfs) and swap partitions.
This container is itself in an encrypted luks container. I'm trying to use Dracut to generate the initramfs with this command:
|dracut --fstab --force --no-compress |
Enabled modules in Dracut:
|systemd-bootchart drm kernel-modules resume fs-lib systemd uefi-lib btrfs crypt lvm debug |
And the kernel_cmdline:
|root=UUID=4f81f639-9c8c-4e2d-9ad1-4642c03ec66b <-- The uuid of my [b]un[/b]encrypted root partition
rd.shell rd.info rd.debug plymouth.enable=0
rd.luks.uuid=73849840-9d18-43bc-a3f0-715a9224b412 <-- The uuid of my encrypted LUKS partition
rd.lvm.vg=vg1 rd.lvm.lv=root rd.lvm.lv=swap rd.md=0 rd.dm=0
resume=UUID=dc49f634-b111-44ef-bb6a-af10dcbcf0b9 <-- The uuid of my [b]un[/b]encrypted swap partition
Some other options:
I use GRUB2 for booting on my EFI system with this cmdline:
|root=/dev/ram0 ro init=/usr/lib/systemd/systemd |
The 3.15.10-hardened-r1 kernel has initramfs support enabled and it boots and starts systemd, but I have no chance to enter my password for the encrypted filesystem.
likely because the initrams are not loaded at all...
|Failed to start Create list of required static device nodes for the current kernel. |
The option does nothing for me.
After linux booted, I see parts of the boot log and the only thing I can do is pressing the magic keys combos and switching num-/capslock on and off.
I'm stuck with this at the moment so I appreciate your help.
I tried the initramfs generation of genkernel and it works now.