Fix install grub security missing message output.
This commit is contained in:
parent
3f7fbe8740
commit
47e122a3a4
@ -18,6 +18,8 @@ if [[ "$1" != "--no-pwd-prompt" ]] && [[ "$2" != "--no-pwd-prompt" ]]; then
|
|||||||
if ! [ -z $gphash ] && [ -f /etc/grub.d/00_header ]; then
|
if ! [ -z $gphash ] && [ -f /etc/grub.d/00_header ]; then
|
||||||
echo "[+] Setting GRUB Password...";
|
echo "[+] Setting GRUB Password...";
|
||||||
sudo sed -i "s/.*password_pbkdf2 root grub\.pbkdf2.*/password_pbkdf2 root $gphash/" /etc/grub.d/00_header;
|
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;
|
fi;
|
||||||
else
|
else
|
||||||
echo "[*] Using grub.d.my.7z hash for GRUB user 'root'!";
|
echo "[*] Using grub.d.my.7z hash for GRUB user 'root'!";
|
||||||
|
Loading…
Reference in New Issue
Block a user