summaryrefslogtreecommitdiffstats
path: root/units/kmod-static-nodes.service.in
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-01-11 16:26:17 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2016-01-11 16:26:17 +0100
commit6233c794b2b6eeee178727cfe3729243876e2948 (patch)
tree01851e500f9950739f4301049a84858f654cfdbf /units/kmod-static-nodes.service.in
parentMerge pull request #2293 from zonque/issue-2292 (diff)
downloadsystemd-6233c794b2b6eeee178727cfe3729243876e2948.tar.xz
systemd-6233c794b2b6eeee178727cfe3729243876e2948.zip
kmod-static-nodes: don't run if module list is empty
With this kmod commit, modules.devname will be empty by default instead of containing just a comment: https://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/?id=4c30a11d5f Refine the startup condition of kmod-static-nodes.service to not run needlessly if the list is empty.
Diffstat (limited to 'units/kmod-static-nodes.service.in')
-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