This commit is contained in:
наб 2024-03-01 13:12:22 +01:00
parent f81d510053
commit f5996ad11a
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1

View File

@ -33,6 +33,9 @@ getarg 0 quiet && quiet=y
tzpfms_load() {
set -- "$(zfs get -Ho value encryptionroot "$1")"
[ "$1" = "-" ] && return 0
# Match this sexion to i-t/zfs-patch.sh
if command -v zfs-tpm2-load-key > /dev/null && [ -n "$(zfs-tpm-list -Hub TPM2 "$1")" ]; then
with_promptable_tty zfs-tpm2-load-key "$1"