Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Can't boot with Dracut initrams and encrypted root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Seebi
n00b
n00b


Joined: 14 Dec 2014
Posts: 1

PostPosted: Sun Dec 14, 2014 2:51 pm    Post subject: [solved] Can't boot with Dracut initrams and encrypted root Reply with quote

Hello,

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:
Code:
dracut --fstab --force --no-compress

Enabled modules in Dracut:
Code:
systemd-bootchart drm kernel-modules resume fs-lib systemd uefi-lib btrfs crypt lvm debug

And the kernel_cmdline:
Code:
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
rootfstype=btrfs

Some other options:
Code:
add_device+=" /dev/disk/by-uuid/73849840-9d18-43bc-a3f0-715a9224b412"
lvmconf="yes".


I use GRUB2 for booting on my EFI system with this cmdline:
Code:
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.

Systemd outputs
Code:
Failed to start Create list of required static device nodes for the current kernel.
likely because the initrams are not loaded at all...

The option
Code:
rd.break=pre-udev
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.


UPDATE:

I tried the initramfs generation of genkernel and it works now. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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