updated the error message
This commit is contained in:
parent
ab0f0709b8
commit
98cec37455
1 changed files with 2 additions and 2 deletions
|
@ -11,11 +11,11 @@ local _root_pool="${_root_vol%%/*}"
|
||||||
# Import the root pool
|
# Import the root pool
|
||||||
zpool import -N -d /dev $_root_pool
|
zpool import -N -d /dev $_root_pool
|
||||||
|
|
||||||
# If the pool is encrypted run zlevis-fetch to decrypt using the tpm2
|
# If the pool is encrypted run `zlevis decrypt` to decrypt using the tpm2
|
||||||
if [ $(zpool list -H -o feature@encryption $_root_pool) = "active" ]; then
|
if [ $(zpool list -H -o feature@encryption $_root_pool) = "active" ]; then
|
||||||
local _encryption_root=$(zfs get -H -o value encryptionroot $_root_vol)
|
local _encryption_root=$(zfs get -H -o value encryptionroot $_root_vol)
|
||||||
if [ "$_encryption_root" != "-" ]; then
|
if [ "$_encryption_root" != "-" ]; then
|
||||||
zlevis decrypt $_root_pool || echo "Zlevis-fetch failed!"
|
zlevis decrypt $_root_pool || echo "zlevis decryption failed!"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue