zfs.target wanted by multi-user.target is too late
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
could it be possible that
/lib/systemd/
has a wrong dependency
WantedBy=
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.
After=local-
[Install]
WantedBy=
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
ProcVersionSign
Uname: Linux 6.8.0-31-generic x86_64
NonfreeKernelMo
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
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.