X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fkmod-static-nodes.service.in;h=0934a8751f3c9d6e77d72452430bd3af4fac0a9c;hp=f8a2d474efe70c0c63143e76df09fd9388412bf8;hb=a931ad47a8623163a29d898224d8a8c1177ffdaf;hpb=edeb68c53f1cdc452016b4c8512586a70b1262e3 diff --git a/units/kmod-static-nodes.service.in b/units/kmod-static-nodes.service.in index f8a2d474e..0934a8751 100644 --- a/units/kmod-static-nodes.service.in +++ b/units/kmod-static-nodes.service.in @@ -9,8 +9,10 @@ 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 [Service] Type=oneshot -ExecStartPre=/usr/bin/mkdir -p /run/tmpfiles.d +RemainAfterExit=yes ExecStart=@KMOD@ static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf