Using this guide I am attempting to add a bootloader password to a CentOS7 install.
When prompted, enter the password that was selected and insert the returned password hash into the appropriate grub2 configuration file(s) under /etc/grub.d immediately after the superuser account. (Use the output from grub2-mkpasswd-pbkdf2 as the value of password-hash):
I've created the "superusers-accountpassword-hash" using grub2-mkpasswd-pbkdf2
, but am not seeing where to add this line:
password_pbkdf2 superusers-accountpassword-hash
The only files in /etc/grub.d/ are binaries. The guide says not to use /etc/grub.cfg since this is overwritten by grub2-mkconfig -o /boot/grub2/grub.cfg
Where does the password_pbkdf2
directive go?