We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6667035 commit 2f1a07eCopy full SHA for 2f1a07e
not-supported/tpm2-unlock.sh
@@ -99,10 +99,11 @@ GRUB_PASS="$(echo -e "$PASSWORD\n$PASSWORD" | grub-mkpasswd-pbkdf2 | grep -oP 'g
99
if [ -n "${PASSWORD##grub.pbkdf2.sha512.10000.}" ]
100
then
101
cat << GRUB_CONF > /etc/grub.d/40_custom
102
-
+cat << EOF
103
# Password-protect GRUB
104
set superusers="grub"
105
password_pbkdf2 grub $GRUB_PASS
106
+EOF
107
GRUB_CONF
108
# Allow to run the default grub options without requiring the grub password
109
if ! grep -q '^CLASS=.*--unrestricted"' /etc/grub.d/10_linux && grep -q '^CLASS=.*"$' /etc/grub.d/10_linux
0 commit comments