Update install-grub.sh
This commit is contained in:
parent
c60d29baf4
commit
127c05cdf5
|
@ -171,7 +171,7 @@ echo
|
||||||
|
|
||||||
# Setting type for EFI.
|
# Setting type for EFI.
|
||||||
echo "Marking partition as boot."
|
echo "Marking partition as boot."
|
||||||
sgdisk -t 1:ef00 /dev/$dev &&
|
sgdisk -t 1:ef02 /dev/$dev &&
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Creating system partition.
|
# Creating system partition.
|
||||||
|
@ -223,7 +223,7 @@ echo
|
||||||
|
|
||||||
echo "Creating the filesystem."
|
echo "Creating the filesystem."
|
||||||
boot=${dev}1
|
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 "Filesystem for boot successfully created."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
@ -340,8 +340,8 @@ echo
|
||||||
|
|
||||||
# Install bootloader.
|
# Install bootloader.
|
||||||
echo "Installing GRUB."
|
echo "Installing GRUB."
|
||||||
grub-install /dev/$dev &&
|
arch-chroot /mnt grub-install --target=i386-pc /dev/$dev &&
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg &&
|
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg &&
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue