Make sure grub is updated after installing security.
This commit is contained in:
parent
86a73b72fc
commit
a14a9436c0
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/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 bin/* /bin/ -f;
|
||||||
sudo cp initramfs-tools-hooks/* /etc/initramfs-tools/hooks/ -f;
|
sudo cp initramfs-tools-hooks/* /etc/initramfs-tools/hooks/ -f;
|
||||||
sudo cp local-sbin/* /usr/local/sbin/ -f;
|
sudo cp local-sbin/* /usr/local/sbin/ -f;
|
||||||
@ -15,5 +17,6 @@ fi
|
|||||||
sudo cp /root/pubkey /boot/pubkey -f;
|
sudo cp /root/pubkey /boot/pubkey -f;
|
||||||
sudo cp gpg.conf /root/.gnupg/gpg.conf -f;
|
sudo cp gpg.conf /root/.gnupg/gpg.conf -f;
|
||||||
sudo cp gpg-agent.conf /root/.gnupg/gpg-agent.conf -f;
|
sudo cp gpg-agent.conf /root/.gnupg/gpg-agent.conf -f;
|
||||||
|
sudo grub-update;
|
||||||
echo "[+] Complete!";
|
echo "[+] Complete!";
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user