mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-07 19:34:26 +00:00
Merge branch 'skip_sig_checks' of https://github.com/kylerankin/heads
This commit is contained in:
commit
03a0e39bce
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user