summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-11 17:26:30 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-11 17:26:30 +0100
commit00fd1ac59fd72a63cc32dc1f3561c98249a699b2 (patch)
treeef4f22b94d6e5db5ee8b7eae04b0dc4da25cd7e3
parent8565742559b15b35fea9e16ef20657fde42316dd (diff)
parent6233c794b2b6eeee178727cfe3729243876e2948 (diff)
Merge pull request #2301 from martinpitt/kmod-static-condition
kmod-static-nodes: don't run if module list is empty
-rw-r--r--units/kmod-static-nodes.service.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/kmod-static-nodes.service.in b/units/kmod-static-nodes.service.in
index 0934a8751f..a9c8df1184 100644
--- a/units/kmod-static-nodes.service.in
+++ b/units/kmod-static-nodes.service.in
@@ -10,7 +10,7 @@ Description=Create list of required static device nodes for the current kernel
DefaultDependencies=no
Before=sysinit.target systemd-tmpfiles-setup-dev.service
ConditionCapability=CAP_SYS_MODULE
-ConditionPathExists=/lib/modules/%v/modules.devname
+ConditionFileNotEmpty=/lib/modules/%v/modules.devname
[Service]
Type=oneshot