summaryrefslogtreecommitdiff
path: root/util/install_bootloader.sh
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-12-15 11:03:01 +0100
committerxengineering <mail2xengineering@protonmail.com>2019-12-15 11:03:01 +0100
commita9d270eddc062c336c40e1ef8e2c732986222673 (patch)
tree1f68137196293ec69e994872538bb09ab12329aa /util/install_bootloader.sh
parent9c3854fc72d16c7a819cd74e93dda56e6805cc21 (diff)
downloadarchinstall-a9d270eddc062c336c40e1ef8e2c732986222673.tar
archinstall-a9d270eddc062c336c40e1ef8e2c732986222673.tar.zst
archinstall-a9d270eddc062c336c40e1ef8e2c732986222673.zip
Removed some hard-coding.
Diffstat (limited to 'util/install_bootloader.sh')
-rw-r--r--util/install_bootloader.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/install_bootloader.sh b/util/install_bootloader.sh
index 4bf6ab5..29e211f 100644
--- a/util/install_bootloader.sh
+++ b/util/install_bootloader.sh
@@ -18,9 +18,13 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
-mount $1 /mnt
+boot_partition_path=$1
+
+
+mount $boot_partition_path /mnt
grub-install --target=x86_64-efi --efi-directory=/mnt --bootloader-id=GRUB \
--removable
grub-mkconfig -o /boot/grub/grub.cfg
-umount $1
+umount $boot_partition_path
+
echo "Installed bootloader - OK"