From a14a9436c0cc1f1a4a85ca79fb6ed4630c65f1fe Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Sat, 3 Aug 2024 00:34:53 +0100 Subject: [PATCH] Make sure grub is updated after installing security. --- install-grub-security.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install-grub-security.sh b/install-grub-security.sh index 5d5465f..040b841 100755 --- a/install-grub-security.sh +++ b/install-grub-security.sh @@ -1,5 +1,7 @@ #!/bin/bash -echo "[+] Installing..."; +echo "[+] Installing GRUB 2 Security..."; +echo "[?] WARNING Make sure the current GRUB version does not have any bugs with gpg before installing, use CTRL+C to quit, enter to continue:"; +read; sudo cp bin/* /bin/ -f; sudo cp initramfs-tools-hooks/* /etc/initramfs-tools/hooks/ -f; sudo cp local-sbin/* /usr/local/sbin/ -f; @@ -15,5 +17,6 @@ fi sudo cp /root/pubkey /boot/pubkey -f; sudo cp gpg.conf /root/.gnupg/gpg.conf -f; sudo cp gpg-agent.conf /root/.gnupg/gpg-agent.conf -f; +sudo grub-update; echo "[+] Complete!"; exit;