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 <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2023-02-24 16:47:07 -05:00
parent 8bf5415e79
commit bc736450cb
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -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