]> err.no Git - systemd/commitdiff
units: don't try to load kernel modules if CAP_SYS_MODULE is missing
authorLennart Poettering <lennart@poettering.net>
Sun, 22 Apr 2012 11:39:18 +0000 (13:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 22 Apr 2012 12:11:32 +0000 (14:11 +0200)
units/systemd-modules-load.service.in

index 72e1d70dce6f896aa99aac11b1360fc3de221bf0..243afadc83ec2461d49360b597c69eb825032c1d 100644 (file)
@@ -11,6 +11,7 @@ DefaultDependencies=no
 Conflicts=shutdown.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service
 Before=sysinit.target shutdown.target
+ConditionCapability=CAP_SYS_MODULE
 ConditionDirectoryNotEmpty=|/lib/modules-load.d
 ConditionDirectoryNotEmpty=|/usr/lib/modules-load.d
 ConditionDirectoryNotEmpty=|/usr/local/lib/modules-load.d