From bc736450cb8e7ba190d84117b17bba4b37912783 Mon Sep 17 00:00:00 2001 From: Jonathon Hall Date: Fri, 24 Feb 2023 16:47:07 -0500 Subject: [PATCH] kexec-select-boot: For debug inspection, drop to recovery After saving a disk unlock key, if debug output is enabled, drop to a recovery shell to allow inspection of debug output. The script isn't intended to return from this point after sealing a key - returning attempts to boot, which can't unseal the key. Signed-off-by: Jonathon Hall --- initrd/bin/kexec-select-boot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/initrd/bin/kexec-select-boot b/initrd/bin/kexec-select-boot index c6983e4e..71de154b 100755 --- a/initrd/bin/kexec-select-boot +++ b/initrd/bin/kexec-select-boot @@ -302,7 +302,9 @@ user_select() { || die "!!! Failed to reboot system" else DEBUG "Rebooting is required prior of booting default boot entry" - sleep 2 + # Instead of rebooting, drop to a recovery shell + # for a chance to inspect debug output + recovery "!!! Entering recovery to inspect debug output, reboot to continue" fi fi fi