diff options
author | xengineering <mail2xengineering@protonmail.com> | 2019-11-14 19:36:03 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2019-11-14 19:36:03 +0100 |
commit | 6716e1b213d8108dac86d688f17016faa7f03c1a (patch) | |
tree | c47e8bb29235dfc39c01de802b467c2d3f053c07 /bin/install_bootloader.sh | |
parent | b872b3eba4209f7a3c7c554a020eb6b4af606d80 (diff) | |
download | archinstall-6716e1b213d8108dac86d688f17016faa7f03c1a.tar archinstall-6716e1b213d8108dac86d688f17016faa7f03c1a.tar.zst archinstall-6716e1b213d8108dac86d688f17016faa7f03c1a.zip |
Improved code readability and avoided output redirect to /dev/null.
Diffstat (limited to 'bin/install_bootloader.sh')
-rw-r--r-- | bin/install_bootloader.sh | 9 |
1 files changed, 3 insertions, 6 deletions
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 |