18 lines
368 B
SYSTEMD
18 lines
368 B
SYSTEMD
|
[Unit]
|
||
|
Description=Load encryption key for ZFS hpool
|
||
|
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 hpool
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=zfs.target
|