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