From d4a993fe7bc068aac5715ee59500c6cea49f2e3e Mon Sep 17 00:00:00 2001 From: TommyTran732 <57488583+tommytran732@users.noreply.github.com> Date: Sun, 25 Jul 2021 09:11:09 +0000 Subject: [PATCH] Update secureboot.sh --- secureboot.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/secureboot.sh b/secureboot.sh index 99f277a..bbac287 100644 --- a/secureboot.sh +++ b/secureboot.sh @@ -60,3 +60,5 @@ When=PostTransaction NeedsTargets Exec=/bin/bash -c 'grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --modules="normal test efi_gop efi_uga search echo linux all_video gfxmenu gfxterm_background gfxterm_menu gfxterm loadenv configfile tpm gzio part_gpt cryptodisk luks gcry_rijndael gcry_sha256 btrfs" --disable-shim-lock && /usr/bin/sbsign --key /etc/efi-keys/DB.key --cert /etc/efi-keys/DB.crt --output /boot/efi/EFI/GRUB/grubx64.efi /boot/efi/EFI/GRUB/grubx64.efi && /usr/bin/sed -i 's#rootflags=subvol=${rootsubvol} ##g' /etc/grub.d/10_linux && /usr/bin/sed -i 's#rootflags=subvol=${rootsubvol} ##g' /etc/grub.d/20_linux_xen && /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg' EOF + +chmod 600 /etc/pacman.d/hooks/*