From f11bd91d752b2dff762598eea6a33bf45ac19c99 Mon Sep 17 00:00:00 2001 From: Luc Date: Sun, 17 Nov 2024 19:13:29 +0100 Subject: [PATCH] Removed bug in zlevis-fetch. --- src/zlevis-fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zlevis-fetch b/src/zlevis-fetch index 8658524..fa8e2b6 100644 --- a/src/zlevis-fetch +++ b/src/zlevis-fetch @@ -9,7 +9,7 @@ command -v zlevis-decrypt > /dev/null || exit 1 # Read ZFS dataset information. zfs list -Ho name,encryption,keystatus,encryptionroot,tpm:jwe | while IFS=$'\t' read -r ds enc keystatus encroot jwe; do # Check if the dataset is the encryption root. - if [ "$ds" = "$encroot" ] && [ "$enc" != "off" ] && [ "$key" != "-" ]; then + if [ "$ds" = "$encroot" ] && [ "$enc" != "off" ] && [ "$jwe" != "-" ]; then if [ "$keystatus" = "available" ]; then echo "Pool $ds already unlocked" else