chiark / gitweb /
units: conditionalize static device node logic on CAP_SYS_MODULES instead of CAP_MKNOD
[elogind.git] / units / systemd-tmpfiles-setup-dev.service.in
index 3553226c677d49bc3547cacbda0662a55a98fedc..06346d3b7ceac5a276a69a6d15f0d19468ad7dd5 100644 (file)
@@ -6,11 +6,15 @@
 #  (at your option) any later version.
 
 [Unit]
-Description=Create static device nodes in /dev
+Description=Create Static Device Nodes in /dev
+Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)
 DefaultDependencies=no
-Before=sysinit.target systemd-udevd.service
-ConditionCapability=CAP_MKNOD
+Conflicts=shutdown.target
+After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-sysusers.service
+Before=sysinit.target local-fs-pre.target systemd-udevd.service shutdown.target
+ConditionCapability=CAP_SYS_MODULE
 
 [Service]
 Type=oneshot
+RemainAfterExit=yes
 ExecStart=@rootbindir@/systemd-tmpfiles --prefix=/dev --create