commit e0598f888d476bf00d1600fd2af5334acb1ffa43
parent cc238a07c22b19ea22501a4c635703e4a68c7f93
Author: awy <awy@awy.one>
Date: Thu, 10 Apr 2025 15:26:18 +0300
fix
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/post_chroot.sh b/post_chroot.sh
@@ -25,6 +25,7 @@ PARTUUID_CRYPTROOT=$(blkid -s PARTUUID -o value /dev/mapper/cryptlvm)
binkernel()
{
+ pacman -S grub os-prober efibootmgr --noconfirm
echo "options hid_apple fnmode=0" > /etc/modprobe.d/hid_apple.conf
if [ "$encryption" = 1 ]; then
sed -i "s#GRUB_CMDLINE_LINUX_DEFAULT=.*#GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet options cryptdevice=PARTUUID=$PARTUUID_ROOT:cryptlvm root=PARTUUID=$PARTUUID_CRYPTROOT rw intel_iommu=on\"#g" /etc/default/grub
@@ -38,7 +39,6 @@ binkernel()
2) pacman -S linux-zen-headers --noconfirm ;;
*) printf "Invalid kernel" && exit 1 ;;
esac
- pacman -S grub os-prober efibootmgr --noconfirm
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
}