You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mount units generated by zfs-mount-generator with org.openzfs.systemd:nofail=on set on the dataset still have Before=local-fs.target set in the running system.
That is because according to man 5 systemd.mount: "Mount units referring to local file systems automatically gain an After= dependency on local-fs-pre.target, and a Before= dependency on local-fs.target unless one or more mount options among nofail, x-systemd.wanted-by=, and x-systemd.required-by= is set."
The zfs-mount-generator does not itself set the Before=local-fs.target ordering when org.openzfs.systemd:nofail=on is set, but that does not keep systemd from then still adding it as a default dependency.
I believe zfs-mount-generator should also include nofail in the mount Options= in this case.
Describe how to reproduce the problem
Set canmount=on and org.openzfs.systemd:nofail=on on a dataset.
systemctl soft-reboot
systemctl show mnt-<dataset>.mount | grep Before=
Observe that local-fs.target is still included
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered:
System information
Describe the problem you're observing
Mount units generated by zfs-mount-generator with
org.openzfs.systemd:nofail=on
set on the dataset still haveBefore=local-fs.target
set in the running system.That is because according to
man 5 systemd.mount
: "Mount units referring to local file systems automatically gain an After= dependency on local-fs-pre.target, and a Before= dependency on local-fs.target unless one or more mount options among nofail, x-systemd.wanted-by=, and x-systemd.required-by= is set."The zfs-mount-generator does not itself set the
Before=local-fs.target
ordering whenorg.openzfs.systemd:nofail=on
is set, but that does not keep systemd from then still adding it as a default dependency.I believe zfs-mount-generator should also include
nofail
in the mountOptions=
in this case.Describe how to reproduce the problem
canmount=on
andorg.openzfs.systemd:nofail=on
on a dataset.systemctl soft-reboot
systemctl show mnt-<dataset>.mount | grep Before=
local-fs.target
is still includedInclude any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: