ansible-edda/plays/system/roles/zfs/files/load_key/zfs-load-key@.service

18 lines
366 B
Desktop File

[Unit]
Description=Load encryption key for a ZFS pool
Documentation=man:zfs(8)
DefaultDependencies=no
After=systemd-udev-settle.service
After=zfs-import.target
After=systemd-remount-fs.service
Before=zfs-mount.service
ConditionPathIsDirectory=/sys/module/zfs
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/zfs load-key %i
[Install]
WantedBy=zfs.target