From 6716e1b213d8108dac86d688f17016faa7f03c1a Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 14 Nov 2019 19:36:03 +0100 Subject: Improved code readability and avoided output redirect to /dev/null. --- bin/install_bootloader.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'bin/install_bootloader.sh') diff --git a/bin/install_bootloader.sh b/bin/install_bootloader.sh index 2f19ca3..7967a54 100644 --- a/bin/install_bootloader.sh +++ b/bin/install_bootloader.sh @@ -26,14 +26,11 @@ # 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 +mount $1 /mnt +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