Public bug reported: 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'] ** Affects: zfs-linux (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2067001 Title: zfs.target wanted by multi-user.target is too late To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/2067001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs