mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-09-15 13:50:11 +03:00

Runs `zfs mount -R <dataset>` at boot, after `zfs mount -a`. Intended to replace `mountpoint=legacy` in certain mount setups. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Meriel Luna Mittelbach <lunarlambda@gmail.com> Closes #17483
27 lines
623 B
SYSTEMD
27 lines
623 B
SYSTEMD
[Unit]
|
|
Description=Mount ZFS filesystem %I
|
|
Documentation=man:zfs(8)
|
|
DefaultDependencies=no
|
|
After=systemd-udev-settle.service
|
|
After=zfs-import.target
|
|
After=zfs-mount.service
|
|
After=systemd-remount-fs.service
|
|
Before=local-fs.target
|
|
ConditionPathIsDirectory=/sys/module/zfs
|
|
|
|
# This merely tells the service manager
|
|
# that unmounting everything undoes the
|
|
# effect of this service. No extra logic
|
|
# is ran as a result of these settings.
|
|
Conflicts=umount.target
|
|
Before=umount.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
EnvironmentFile=-@initconfdir@/zfs
|
|
ExecStart=@sbindir@/zfs mount -R %I
|
|
|
|
[Install]
|
|
WantedBy=zfs.target
|