Grub2 Password
In Libreboot
-
- Generate the HASH of the password
grub2-mkpasswd-pbkdf2
The output should be something like
grub.pbkdf2.sha512.10000.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-
- Open with sudo /etc/grub.d/40_custom. At the end add:
#──────────────────────────────────────
set superusers="admin"
password_pbkdf2 admin grub.pbkdf2.sha512.10000.XXXXXXXXXXXXXXXXXXXXXXXX
#──────────────────────────────────────
-
- Update grub
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
sudo reboot
-
- Test Test with "e", it should ask for an user and a password.