diff options
author | Michal Sekletar <msekleta@redhat.com> | 2014-11-12 15:19:42 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-04 02:43:02 +0100 |
commit | fe0b9cd3ba25fb5063b6782983dde0a0c9915660 (patch) | |
tree | 3647706a3873d14daee8ad54b364c466919a209b /units/dev-hugepages.mount | |
parent | 6ed62be0b15ac92d9687cff93c63d7b06d11b9f0 (diff) |
units: skip mounting /dev/hugepages if we don't have CAP_SYS_ADMIN
Preparation for allowing systemd to run gracefully in containers lacking
CAP_SYS_ADMIN.
Diffstat (limited to 'units/dev-hugepages.mount')
-rw-r--r-- | units/dev-hugepages.mount | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/units/dev-hugepages.mount b/units/dev-hugepages.mount index d711faed55..882adb4545 100644 --- a/units/dev-hugepages.mount +++ b/units/dev-hugepages.mount @@ -12,6 +12,7 @@ Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems DefaultDependencies=no Before=sysinit.target ConditionPathExists=/sys/kernel/mm/hugepages +ConditionCapability=CAP_SYS_ADMIN [Mount] What=hugetlbfs |