Fix install grub security missing message output.

This commit is contained in:
Captain ALM 2024-08-20 23:02:52 +01:00
parent 3f7fbe8740
commit 47e122a3a4
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -18,6 +18,8 @@ if [[ "$1" != "--no-pwd-prompt" ]] && [[ "$2" != "--no-pwd-prompt" ]]; then
if ! [ -z $gphash ] && [ -f /etc/grub.d/00_header ]; then
echo "[+] Setting GRUB Password...";
sudo sed -i "s/.*password_pbkdf2 root grub\.pbkdf2.*/password_pbkdf2 root $gphash/" /etc/grub.d/00_header;
else
echo "[*] Using grub.d.my.7z hash for GRUB user 'root'!";
fi;
else
echo "[*] Using grub.d.my.7z hash for GRUB user 'root'!";