From 87b75b24667127fbb3939a27fa621305d320e0c9 Mon Sep 17 00:00:00 2001 From: oddlama Date: Tue, 6 Oct 2020 21:26:13 +0200 Subject: [PATCH] Add debug --- scripts/utils.sh | 2 ++ 1 file changed, 2 insertions(+) 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='*}"