summaryrefslogtreecommitdiff
path: root/bin/install_bootloader.sh
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-09-16 21:52:30 +0200
committerxengineering <mail2xengineering@protonmail.com>2019-09-16 21:52:30 +0200
commit0375e041c36556d30b7b5a3e270269a48daf0882 (patch)
tree466f9d6d9e4ca88417392796167374a4efd09afc /bin/install_bootloader.sh
parentd1df29a4a74dacc5da224ce042504c68b4e71ef3 (diff)
downloadarchinstall-0375e041c36556d30b7b5a3e270269a48daf0882.tar
archinstall-0375e041c36556d30b7b5a3e270269a48daf0882.tar.zst
archinstall-0375e041c36556d30b7b5a3e270269a48daf0882.zip
Added scripts in /bin folder.
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