mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
kexec-boot: display kexec command to be executed in DEBUG mode and permit to abort call.
This commit is contained in:
parent
3747d58510
commit
d9a2b17dec
@ -146,6 +146,17 @@ echo "$kexeccmd"
|
|||||||
eval "$kexeccmd" \
|
eval "$kexeccmd" \
|
||||||
|| die "Failed to load the new kernel"
|
|| die "Failed to load the new kernel"
|
||||||
|
|
||||||
|
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
|
||||||
|
#Repeat kexec command that will be executed since in debug
|
||||||
|
DEBUG "kexeccmd= $kexeccmd"
|
||||||
|
|
||||||
|
read -n 1 -p "[DEBUG] Continue booting? [Y/n]: " debug_boot_confirm
|
||||||
|
if [ "${debug_boot_confirm^^}" = N ]; then
|
||||||
|
# abort
|
||||||
|
die "Boot aborted"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$CONFIG_TPM" = "y" ]; then
|
if [ "$CONFIG_TPM" = "y" ]; then
|
||||||
tpmr kexec_finalize
|
tpmr kexec_finalize
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user