зеркало из https://github.com/microsoft/lsvmtools.git
Added back --dbxupdate option.
This commit is contained in:
Родитель
c396cbd297
Коммит
aca3dc2e37
20
lsvmprep
20
lsvmprep
|
@ -38,6 +38,10 @@ do
|
|||
sealopt=1
|
||||
;;
|
||||
|
||||
--dbxupdate)
|
||||
dbxupdateopt=1
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "$0: unknown option: $opt"
|
||||
exit 1
|
||||
|
@ -57,6 +61,10 @@ if [ "${LSVMPREP_SEAL}" == "1" ]; then
|
|||
sealopt=1
|
||||
fi
|
||||
|
||||
if [ "${LSVMPREP_DBXUPDATE}" == "1" ]; then
|
||||
dbxupdateopt=1
|
||||
fi
|
||||
|
||||
##==============================================================================
|
||||
##
|
||||
## help:
|
||||
|
@ -76,8 +84,8 @@ OPTIONS:
|
|||
-h, --help Print this help message.
|
||||
--seal Seal and create /boot/efi/EFI/boot/sealedkeys with
|
||||
well-known passphrases (i.e., 'passphrase').
|
||||
--secureboot If the --seal option given, then seal for secure
|
||||
boot enabled.
|
||||
--dbxupdate Update the UEFI dbx variable.
|
||||
--secureboot Seal for secure boot (if --seal option present).
|
||||
|
||||
EOF
|
||||
exit 0
|
||||
|
@ -221,7 +229,9 @@ check_for_revocation()
|
|||
chkerr "$?" "$0: failed to install lsvmload"
|
||||
}
|
||||
|
||||
check_for_revocation
|
||||
if [ "${dbxupdateopt}" == "1" ]; then
|
||||
check_for_revocation
|
||||
fi
|
||||
|
||||
##==============================================================================
|
||||
##
|
||||
|
@ -714,7 +724,9 @@ apply_dbxupdate()
|
|||
fi
|
||||
}
|
||||
|
||||
apply_dbxupdate
|
||||
if [ "${dbxupdateopt}" == "1" ]; then
|
||||
apply_dbxupdate
|
||||
fi
|
||||
|
||||
##==============================================================================
|
||||
##
|
||||
|
|
Загрузка…
Ссылка в новой задаче