hook/zfs/zfs.init: load key for all pools

This commit is contained in:
illiliti 2022-03-21 07:28:02 +03:00
parent 41ca40c392
commit 53524bb1a1
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ resolve_device "$zfs_root"
zpool import -Nd "$device" "${root%%/*}"
if [ "$zfs_key" ]; then
zfs load-key -L "file://${zfs_key}" "$root"
zfs load-key -L prompt -a < "$zfs_key"
elif [ "$(zfs get -Ho value encryption "$root")" != off ]; then
zfs load-key -L prompt "$root"
zfs load-key -L prompt -a
fi