summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-01-26 11:37:06 +0100
committerLennart Poettering <lennart@poettering.net>2019-01-26 13:55:18 +0100
commite4bbc5fb74f02cf1a821e7c40a294c4994ca8ae1 (patch)
tree6d75da93a5c9f3e380d8f63a5f91a665754e4c21 /units
parent2949ff26911b165d3c5452df7b09471d289f9ad9 (diff)
downloadsystemd-e4bbc5fb74f02cf1a821e7c40a294c4994ca8ae1.tar.gz
units: drop conditionalization of systemd-tmpfiles-setup-dev.service
Currently, tmpfiles runs in two separate services at boot. /dev is populated by systemd-tmpfiles-setup-dev.service and everything else by systemd-tmpfiles-setup.service. The former was so far conditionalized by CAP_SYS_MODULES. The reasoning was that the primary purpose of populating /dev was to create device nodes based on the static device node info exported in kernel modules through MODALIAS. And without the privs to load kernel modules doing so is unnecessary. That thinking is incomplete however, as there might be reason to create stuff in /dev outside of the static modalias usecase. Thus, let's drop the conditionalization to ensure that tmpfiles.d rules are always executed at least once under all conditions. Fixes: #11544
Diffstat (limited to 'units')
-rw-r--r--units/systemd-tmpfiles-setup-dev.service.in1
1 files changed, 0 insertions, 1 deletions
diff --git a/units/systemd-tmpfiles-setup-dev.service.in b/units/systemd-tmpfiles-setup-dev.service.in
index 1d06b369d4..50df15c291 100644
--- a/units/systemd-tmpfiles-setup-dev.service.in
+++ b/units/systemd-tmpfiles-setup-dev.service.in
@@ -14,7 +14,6 @@ DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-sysusers.service
Before=sysinit.target local-fs-pre.target systemd-udevd.service shutdown.target
-ConditionCapability=CAP_SYS_MODULE
[Service]
Type=oneshot