--- /usr/sbin/update-secureboot-policy 2018-11-14 19:13:42.000000000 +0100 +++ /home/michael/Documents/update-secureboot-policy 2019-05-14 16:46:58.330711259 +0200 @@ -21,6 +21,7 @@ do_enroll=0 do_toggle=0 +force_enroll=0 efivars=/sys/firmware/efi/efivars secureboot_var=SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c @@ -215,7 +216,7 @@ exit 0 fi - if [ $dkms_modules -lt 2 ]; then + if [ $dkms_modules -lt 2 -a $force_enroll -eq 0 ]; then echo "No DKMS modules installed." >&2 exit 0 fi @@ -269,6 +270,9 @@ grep -qc 'is not'; then do_enroll=1 fi + if [ "$2" = '--force' ]; then + force_enroll=1 + fi else echo "No MOK found." exit 1 @@ -280,6 +284,8 @@ echo echo "\t--new-key\tCreate a new MOK." echo "\t--enroll-key\tEnroll the new MOK for this system in shim." + echo "\t\t\tUse --force to enroll the new MOK even if no" + echo "\t\t\tDKMS modules are installed." echo "\t--help\t\tThis help text." exit 0