From 7ded855129bb3937f3059c1c9a0c46c931d8e6c3 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 22 Mar 2020 14:35:21 +0100 Subject: Bugfix for awk finding the crypto UUID --- stages/second_stage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stages/second_stage.sh b/stages/second_stage.sh index af7ff8a..6c606c7 100644 --- a/stages/second_stage.sh +++ b/stages/second_stage.sh @@ -101,7 +101,7 @@ if [ $luks_encryption == "yes" ];then crypto_partition="${path_to_disk}2" fi - cryptdevice_uuid=$(lsblk --fs | grep "$(basename $crypto_partition)" | awk '{print $3}') + cryptdevice_uuid=$(lsblk --fs | grep "$(basename $crypto_partition)" | awk '{print $4}') print_ok "cryptdevice_uuid: $cryptdevice_uuid" old_kernel_param_line=$(cat /etc/default/grub | grep "GRUB_CMDLINE_LINUX_DEFAULT") print_ok "old_kernel_param_line: $old_kernel_param_line" -- cgit v1.2.3-70-g09d2