units: don't try to load kernel modules if CAP_SYS_MODULE is missing

This commit is contained in:
Lennart Poettering 2012-04-22 13:39:18 +02:00
parent 2c8049f3d3
commit 5cd6eef69b
1 changed files with 1 additions and 0 deletions

View 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