diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-01-09 10:46:37 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-01-09 10:46:37 +0100 |
commit | 457c01bfcd6346b8a06420d721fa02a216cea9bf (patch) | |
tree | 68898298b6b18e2bcd7fc5523e97f6c346e74129 /util/install_bootloader.sh | |
parent | 28040393a5ded9909d11743e5cd0cafcd145f931 (diff) | |
download | archinstall-457c01bfcd6346b8a06420d721fa02a216cea9bf.tar archinstall-457c01bfcd6346b8a06420d721fa02a216cea9bf.tar.zst archinstall-457c01bfcd6346b8a06420d721fa02a216cea9bf.zip |
Bugfix for install_bootloader.sh.
Diffstat (limited to 'util/install_bootloader.sh')
-rw-r--r-- | util/install_bootloader.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/install_bootloader.sh b/util/install_bootloader.sh index 1f3c4e3..db6c8bc 100644 --- a/util/install_bootloader.sh +++ b/util/install_bootloader.sh @@ -20,6 +20,7 @@ efi_partition_path=$1 system_encryption=$2 +main_partition_path=$3 ############ Add encryption setting in /etc/default/grub before calling grub-mkconfig @@ -34,7 +35,7 @@ grub-install --target=x86_64-efi --efi-directory=/mnt --bootloader-id=GRUB \ if [ $system_encryption == "yes" ];then - cryptdevice_uuid=$(lsblk --fs | grep "${basename $main_partition_path}" | awk '{print $3}') + cryptdevice_uuid=$(lsblk --fs | grep "$(basename $main_partition_path)" | awk '{print $3}') echo "cryptdevice_uuid: $cryptdevice_uuid" old_kernel_param_line=$(cat /etc/default/grub | grep "GRUB_CMDLINE_LINUX_DEFAULT") echo "old_kernel_param_line: $old_kernel_param_line" |