diff --git a/scripts/utils.sh b/scripts/utils.sh index 6c9259c..3ed7104 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -159,10 +159,12 @@ get_device_by_uuid() { } get_device_by_ptuuid() { + echo "get_device_by_ptuuid '$ptuuid'" local ptuuid="${1,,}" local dev dev="$(lsblk --all --path --pairs --output NAME,PTUUID,PARTUUID)" \ || die "Error while executing lsblk to find PTUUID=$ptuuid" + echo "lsblkout: $dev" dev="$(grep "ptuuid=\"$ptuuid\" partuuid=\"\"" <<< "${dev,,}")" \ || die "Could not find PTUUID=... in lsblk output" dev="${dev%'" ptuuid='*}"