Re:Better-initramfs: initramfs supporting SSH, lvm, luks, ra...
by piotrkarbowski on Tuesday January 28, 2020 @07:09AM
(#22168608)
Even if you boot kernel with EFISTUB or whatever way you decide, you still need something that will mount encrypted storage before you can switch to /sbin/init.
Re:Better-initramfs: initramfs supporting SSH, lvm, luks, ra...
by bepvte on Tuesday January 28, 2020 @09:56AM
(#22169914)
For one, the kernel cant ask for the password of the hard drive without userspace software. LUKS header is actually all parsed in userspace and the device mapper is setup based on it.
On non-critical devices which can be booted via USB in a case of emergency (like laptops or desktops) initramfss are kind of pointless and just unnecessarily prolong the boot time.
As long as you statically compile in the ext4 (or whatever FS) support every needed kernel module can then be loaded regular boot.