zfs.target wanted by multi-user.target is too late

Bug #2067001 reported by Hadmut Danisch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zfs-linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

could it be possible that

/lib/systemd/system/zfs.target

has a wrong dependency

WantedBy=multi-user.target

and shouldn't it be wanted by local-fs.target instead?

Reason I'm asking:

I do have to install a daemon on several machines, where a particular work directory is on zfs only on some machines. To start my daemon, I therefore use

[Unit]
After=network.target
After=local-fs.target

[Install]
WantedBy=multi-user.target

but found that the daemon fails to start, because zfs mount isn't ready yet. systemd simply doesn't know that my daemon needs zfs up and running on those machines, where zfs is installed.

Of course, I could easily add After=zfs.target, but that would fail on those machines without zfs and would not be really clean.

Doesn't having zfs being wanted as late as multi-user.target break the systemd logic that after local-fs.target all local file systems should be ready, and daemons are to be started between local-fs.target and and multi-user.target?

regards

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: zfsutils-linux 2.2.2-0ubuntu9
ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
Uname: Linux 6.8.0-31-generic x86_64
NonfreeKernelModules: zfs nvidia_modeset nvidia
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: LXQt
Date: Fri May 24 02:00:16 2024
InstallationDate: Installed on 2018-04-28 (2217 days ago)
InstallationMedia: Lubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: zfs-linux
UpgradeStatus: Upgraded to noble on 2024-05-11 (12 days ago)
modified.conffile..etc.sudoers.d.zfs: [inaccessible: [Errno 13] Permission denied: '/etc/sudoers.d/zfs']

Revision history for this message
Hadmut Danisch (hadmut) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.