Update install-grub.sh
This commit is contained in:
parent
c60d29baf4
commit
127c05cdf5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue