diff --git a/initrd/bin/generic-init b/initrd/bin/generic-init index cd07049a..438f29d9 100755 --- a/initrd/bin/generic-init +++ b/initrd/bin/generic-init @@ -41,18 +41,12 @@ while true; do fi if [ "$totp_confirm" = "u" ]; then - if [ "$CONFIG_IO386" = y ]; then - lock_chip - fi exec /bin/usb-init continue fi if [ "$totp_confirm" = "m" ]; then # Try to select a kernel from the menu - if [ "$CONFIG_IO386" = y ]; then - lock_chip - fi mount_boot kexec-select-boot -m -b /boot -c "grub.cfg" continue @@ -60,16 +54,11 @@ while true; do if [ "$totp_confirm" = "y" -o -n "$totp_confirm" ]; then # Try to boot the default - if [ "$CONFIG_IO386" = y ]; then - lock_chip - fi mount_boot kexec-select-boot -b /boot -c "grub.cfg" \ || recovery "Failed default boot" fi - - done recovery "Something failed during boot" diff --git a/initrd/bin/kexec-boot b/initrd/bin/kexec-boot index d25b0482..dfbfccd9 100755 --- a/initrd/bin/kexec-boot +++ b/initrd/bin/kexec-boot @@ -150,5 +150,9 @@ if [ "$CONFIG_TPM" = "y" ]; then tpmr kexec_finalize fi +if [ -x /bin/io386 ]; then + lock_chip +fi + echo "Starting the new kernel" exec kexec -e