diff --git a/hook/zfs/zfs.init b/hook/zfs/zfs.init index b2da024..9f821d8 100644 --- a/hook/zfs/zfs.init +++ b/hook/zfs/zfs.init @@ -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