summaryrefslogtreecommitdiff
path: root/util/install_bootloader.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/install_bootloader.sh')
-rw-r--r--util/install_bootloader.sh2
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"