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

18 lines
366 B
SYSTEMD
Raw Normal View History

2022-10-12 22:02:11 +02:00
[Unit]
2022-12-05 22:21:07 +01:00
Description=Load encryption key for a ZFS pool
2022-10-12 22:02:11 +02:00
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
2022-12-05 22:21:07 +01:00
ExecStart=/sbin/zfs load-key %i
2022-10-12 22:02:11 +02:00
[Install]
WantedBy=zfs.target