A custom kernel for a system with LUKS
I built a custom kernel from 4.16.8 following the requirements here and enabled in-kernel options for all mentioned drivers, file systems, devices and algorithms from that page. But when I boot that kernel, it stops dead at "Starting to forward password requests to Plymouth".
The full kernel config is at https://pastebin.com/bBr1Mczc
In short, ext4, DM, loopback devices, crypto targets, SHA/Twofish/Whirlpool etc crypto algorithms, and all device drivers that exist in this particular box are compiled into the kernel (not as modules).
What am I missing?
The partitions on this box have been created by the Fedora 26 setup using automatic default layout with encryption.
# df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 3802100 0 3802100 0% /dev
tmpfs 3815908 13256 3802652 1% /dev/shm
tmpfs 3815908 1376 3814532 1% /run
tmpfs 3815908 0 3815908 0% /sys/fs/cgroup
/dev/mapper/fedora-root 51343840 11120320 37585696 23% /
tmpfs 3815908 8 3815900 1% /tmp
/dev/sdb1 999320 234112 696396 26% /boot
/dev/mapper/fedora-home 419382152 144294060 253714960 37% /home
# lvm lvdisplay
File descriptor 10 (pipe:[100000]) leaked on lvm invocation. Parent PID 3886: bash
--- Logical volume ---
LV Path /dev/fedora/swap
LV Name swap
VG Name fedora
LV UUID ...
LV Write Access read/write
LV Creation host, time localhost, 2018-04-15 08:43:20 -0400
LV Status available
# open 2
LV Size 7.41 GiB
Current LE 1897
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Path /dev/fedora/home
LV Name home
VG Name fedora
LV UUID ...
LV Write Access read/write
LV Creation host, time localhost, 2018-04-15 08:43:21 -0400
LV Status available
# open 1
LV Size 407.35 GiB
Current LE 104281
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
--- Logical volume ---
LV Path /dev/fedora/root
LV Name root
VG Name fedora
LV UUID ...
LV Write Access read/write
LV Creation host, time localhost, 2018-04-15 08:43:33 -0400
LV Status available
# open 1
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
From the boot menu, remove the
rhgb
andquiet
parameters from the kernel command line before booting. See if that gives you any more useful information.Did you use dracut to create a new initramfs for use with this kernel?
I am not sure what information should be useful, as it flies past the screen at lightning speed and leaves me with the initialization of USB devices appearing now after "Starting to forward password requests to Plymouth".
initramfs
got created bymake install
.