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