]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
unit: make udev rules take precesence over tmpfiles
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 4 Aug 2023 19:37:19 +0000 (04:37 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 4 Aug 2023 19:38:39 +0000 (04:38 +0900)
Without this change, there are no ordering between udevd and tmpfiles,
and if tmpfiles is invoked later it may discard the permission set by
udevd.

Fixes an issue introduced by b42482af904ae0b94a6e4501ec595448f0ba1c06.

Fixes #28588 and #28653.

units/systemd-udevd.service.in

index b59fdef9b01f71572b37b64a0ccd2e9f41ba206a..7682baeec17908898488b228ad7ef6d7fd9add04 100644 (file)
@@ -12,6 +12,7 @@ Description=Rule-based Manager for Device Events and Files
 Documentation=man:systemd-udevd.service(8) man:udev(7)
 DefaultDependencies=no
 After=systemd-sysusers.service systemd-hwdb-update.service
+After=systemd-tmpfiles-setup-dev.service
 Before=sysinit.target
 ConditionPathIsReadWrite=/sys