Removed bug in zlevis-fetch.
This commit is contained in:
parent
2b5f370781
commit
f11bd91d75
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue