From 127c05cdf580e1cce29ae8e332077796f4e6341a Mon Sep 17 00:00:00 2001 From: proledatarian Date: Wed, 6 Apr 2022 12:39:55 +0000 Subject: [PATCH] Update install-grub.sh --- install-grub.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-grub.sh b/install-grub.sh index c8b45f9..1bdb81f 100644 --- a/install-grub.sh +++ b/install-grub.sh @@ -171,7 +171,7 @@ echo # Setting type for EFI. echo "Marking partition as boot." -sgdisk -t 1:ef00 /dev/$dev && +sgdisk -t 1:ef02 /dev/$dev && echo # Creating system partition. @@ -223,7 +223,7 @@ echo echo "Creating the filesystem." boot=${dev}1 -mkfs.fat -F 32 -n UEFI /dev/$boot && +mkfs.fat -F 32 -n BIOS /dev/$boot && echo "Filesystem for boot successfully created." echo @@ -340,8 +340,8 @@ echo # Install bootloader. echo "Installing GRUB." -grub-install /dev/$dev && -grub-mkconfig -o /boot/grub/grub.cfg && +arch-chroot /mnt grub-install --target=i386-pc /dev/$dev && +arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg && echo "Done." echo