diff options
author | ogelpre <[email protected]> | 2021-12-12 20:17:14 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-12 11:17:14 -0800 |
commit | f04b97620059d08b37d9e80ada397e742bb2f311 (patch) | |
tree | bdd2fb6f8b67d268449e301a095ad4b9b7ba7bcc /etc/zfs/zfs-functions.in | |
parent | 4a5b6ced41996016e26fe03dff084ded69a69393 (diff) |
Add init script to load keys
Add new init scripts which allow automatic loading of keys if
keylocation property is set to a URI.
Reviewed-by: Ahelenia ZiemiaĆska <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Benedikt Neuffer <[email protected]>
Closes #11659
Closes #11662
Diffstat (limited to 'etc/zfs/zfs-functions.in')
-rw-r--r-- | etc/zfs/zfs-functions.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/zfs/zfs-functions.in b/etc/zfs/zfs-functions.in index a27d4c6cb..30441dc35 100644 --- a/etc/zfs/zfs-functions.in +++ b/etc/zfs/zfs-functions.in @@ -1,5 +1,5 @@ -# This is a script with common functions etc used by zfs-import, zfs-mount, -# zfs-share and zfs-zed. +# This is a script with common functions etc used by zfs-import, zfs-load-key, +# zfs-mount, zfs-share and zfs-zed. # # It is _NOT_ to be called independently # @@ -92,6 +92,8 @@ ZPOOL="@sbindir@/zpool" ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache" # Sensible defaults +ZFS_LOAD_KEY='yes' +ZFS_UNLOAD_KEY='no' ZFS_MOUNT='yes' ZFS_UNMOUNT='yes' ZFS_SHARE='yes' @@ -104,7 +106,8 @@ fi # ---------------------------------------------------- -export ZFS ZED ZPOOL ZPOOL_CACHE ZFS_MOUNT ZFS_UNMOUNT ZFS_SHARE ZFS_UNSHARE +export ZFS ZED ZPOOL ZPOOL_CACHE ZFS_LOAD_KEY ZFS_UNLOAD_KEY ZFS_MOUNT ZFS_UNMOUNT \ + ZFS_SHARE ZFS_UNSHARE zfs_action() { |