summaryrefslogtreecommitdiff
path: root/bin/install_bootloader.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/install_bootloader.sh')
-rw-r--r--bin/install_bootloader.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/install_bootloader.sh b/bin/install_bootloader.sh
new file mode 100644
index 0000000..8c035ee
--- /dev/null
+++ b/bin/install_bootloader.sh
@@ -0,0 +1,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