summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-22 13:39:18 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-22 14:11:32 +0200
commit5cd6eef69b926175b889799d80bd9deb33a904d1 (patch)
tree80c68bb82cb623662bd7de18481ed6a7a0ab070a
parent2c8049f3d31e4022845c1997a474925872ecea8f (diff)
units: don't try to load kernel modules if CAP_SYS_MODULE is missing
-rw-r--r--units/systemd-modules-load.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-modules-load.service.in b/units/systemd-modules-load.service.in
index 72e1d70dce..243afadc83 100644
--- a/units/systemd-modules-load.service.in
+++ b/units/systemd-modules-load.service.in
@@ -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