diff --git a/initrd/bin/kexec-select-boot b/initrd/bin/kexec-select-boot index 17abcabf..4a1f2a73 100755 --- a/initrd/bin/kexec-select-boot +++ b/initrd/bin/kexec-select-boot @@ -304,7 +304,11 @@ do_boot() } while true; do - check_config $paramsdir + if [ "$force_boot" = "y" ]; then + check_config $paramsdir force + else + check_config $paramsdir + fi TMP_DEFAULT_FILE=`find /tmp/kexec/kexec_default.*.txt 2>/dev/null | head -1` || true TMP_MENU_FILE="/tmp/kexec/kexec_menu.txt" TMP_HASH_FILE="/tmp/kexec/kexec_hashes.txt" diff --git a/initrd/etc/functions b/initrd/etc/functions index 067eabc8..b2cfa4ef 100755 --- a/initrd/etc/functions +++ b/initrd/etc/functions @@ -190,8 +190,10 @@ check_config() { return fi - if ! sha256sum `find $1/kexec*.txt` | gpgv $1/kexec.sig - ; then - die 'Invalid signature on kexec boot params' + if [ "$2" != "force" ]; then + if ! sha256sum `find $1/kexec*.txt` | gpgv $1/kexec.sig - ; then + die 'Invalid signature on kexec boot params' + fi fi echo "+++ Found verified kexec boot params"