Update install-grub.sh

This commit is contained in:
proledatarian 2022-04-06 12:39:55 +00:00
parent c60d29baf4
commit 127c05cdf5
1 changed files with 4 additions and 4 deletions

View File

@ -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