diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-01-08 22:27:26 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-01-08 22:27:26 +0100 |
commit | 28040393a5ded9909d11743e5cd0cafcd145f931 (patch) | |
tree | 676cfc9eb67f532770eb2b88ed0208f6985038c2 /util/install_bootloader.sh | |
parent | e218e91ad0ec6b660ca9ae7f3c45d5cde5a36fdf (diff) | |
download | archinstall-28040393a5ded9909d11743e5cd0cafcd145f931.tar archinstall-28040393a5ded9909d11743e5cd0cafcd145f931.tar.zst archinstall-28040393a5ded9909d11743e5cd0cafcd145f931.zip |
Bugfixes for luks encryption.
Diffstat (limited to 'util/install_bootloader.sh')
-rw-r--r-- | util/install_bootloader.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/install_bootloader.sh b/util/install_bootloader.sh index 4d3e9b9..1f3c4e3 100644 --- a/util/install_bootloader.sh +++ b/util/install_bootloader.sh @@ -34,7 +34,7 @@ grub-install --target=x86_64-efi --efi-directory=/mnt --bootloader-id=GRUB \ if [ $system_encryption == "yes" ];then - cryptdevice_uuid=$(lsblk --fs | grep $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" |