chiark / gitweb /
kmod-static-nodes: condition execution on modules.devname
authorDave Reisner <dreisner@archlinux.org>
Sat, 28 Sep 2013 18:51:39 +0000 (14:51 -0400)
committerDave Reisner <dreisner@archlinux.org>
Sat, 28 Sep 2013 18:51:39 +0000 (14:51 -0400)
units/kmod-static-nodes.service.in

index d8a8420..ff4017b 100644 (file)
@@ -10,6 +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_MKNOD
+ConditionPathExists=/lib/modules/%v/modules.devname
 
 [Service]
 Type=oneshot