summaryrefslogtreecommitdiff
path: root/bin/install_bootloader.sh
blob: 8c035ee9320d9776421b61c2ad6f700c361b897a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


# Install Grub

pacman --noconfirm -Syu grub efibootmgr
mount $1 /mnt  # $1 = boot_partition_path
grub-install --target=x86_64-efi --efi-directory=/mnt --bootloader-id=GRUB --removable
grub-mkconfig -o /boot/grub/grub.cfg
umount $1
echo "Grub bootloader installed - OK"
echo ""
sleep 1

echo "Leaving chroot environment - OK"
echo ""
sleep 1