]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
unit: make udev rules really take precedence over tmpfiles
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Aug 2023 22:15:26 +0000 (07:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Aug 2023 22:24:02 +0000 (07:24 +0900)
Follow-up for b42482af904ae0b94a6e4501ec595448f0ba1c06.

The commit makes systemd-tmpfiles-setup.service also updates the
permission or owner of device nodes. However, the service does not have
ordering for systemd-udevd.service. So, the service may set different
permission from the one udevd already set.

Fixes #28653.
Replaces #28681.

units/systemd-tmpfiles-setup.service

index 6c5e3de8fd96248ea0c8c3594e826f914d1c6054..2e04733a5d1d56987f9e579cb2d9862491ef4e28 100644 (file)
@@ -13,7 +13,7 @@ Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)
 
 DefaultDependencies=no
 After=local-fs.target systemd-sysusers.service systemd-journald.service
-Before=sysinit.target
+Before=sysinit.target systemd-udevd.service
 Conflicts=shutdown.target initrd-switch-root.target
 Before=shutdown.target initrd-switch-root.target
 RefuseManualStop=yes