Open
Description
When I rebuild my initramfs with Clevis 20, my system is unable to boot. Though strangely Dracut is able to unlock my LUKS partition, but fails to boot after unlocking it:
Unlocked /dev/nvme0n1p2 (UUID=...) successfully
/lib/dracut-lib.sh: line 147: CMDLINE_PROC: unbound variable
/lib/dracut-lib.sh: line 198: _newoption: unbound variable
dracut Warning: Signal caught!
/lib/dracut-lib.sh: line 147: CMDLINE_PROC: unbound variable
/lib/dracut-lib.sh: line 198: _newoption: unbound variable
/lib/dracut-lib.sh: line 147: CMDLINE_PROC: unbound variable
/lib/dracut-lib.sh: line 198: _newoption: unbound variable
/lib/dracut-lib.sh: line 913: DRACUT_SYSTEMD: unbound variable
[ 4.847995] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[ 4.847995] CPU: 3 PID: 1 Comm: init Not tainted 6.6.16 #1
[ 4.847991] Hardware name: LENOVO 21D4CT01WW/21D4CT01ww, BIOS N3GET66W (1.66 ) 02/02/2024
[ 4.848009] Call Trace:
[ 4.848020] <TASK>
[ 4.848030] dump_stack_lvl+0x32/0x50
[ 4.848048] panic+0x172/0x310
[ 4.848067] do_exit+0x85f/0x9a0
[ 4.848080] ? srso_alias_return_thunk+0x39/0x90
[ 4.848095] ? __count_memcg_events+0x39/0x90
[ 4.848111] do_group_exit+0x28/0x80
[ 4.848123] __x64_sys_exit_group+0xf/0x10
If I recreate my initramfs using Clevis 19, using the same dracut version, parameters, kernel and cmdline, this does not happen and my system boots successfully. Likewise using dracut without clevis also boots successfully.
OS: Gentoo (OpenRC)
Kernel: 6.6.16
Dracut: 060 (commit 4980bad34775da715a2639b736cba5e65a8a2604)
N.B. on Clevis 19, I apply the patch from PR #347 in order to get Clevis to work without systemd