Add grub credentials config

This commit is contained in:
ItsDrike 2021-08-10 14:55:57 +02:00
parent 2e6e16ba78
commit e329fed20d
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
2 changed files with 14 additions and 0 deletions

13
root/etc/grub.d/09_credentials Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
exec tail -n +3 $0
# Setup GRUB credentials so that it isn't possible for anyone to change the
# boot parameters or use the command line, unless they know user/password pair
#set superusers="admin"
#password admin [unsafe plaintext password]
#password_pbkdf2 admin [safe grub-mkpasswd-pbkdf2 password]
# Make OS Entries unrestricted, so that they can be booted into without prompting
# for user/password pair set above
#menuentry_id_option="--unrestricted $menuentry_id_option"

View file

@ -9,3 +9,4 @@ if [ ${grub_platform} == "efi" ]; then
fwsetup
}
fi