From 0375e041c36556d30b7b5a3e270269a48daf0882 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 16 Sep 2019 21:52:30 +0200 Subject: Added scripts in /bin folder. --- bin/install_bootloader.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bin/install_bootloader.sh (limited to 'bin/install_bootloader.sh') 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 -- cgit v1.2.3-70-g09d2