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.
This commit is contained in:
Michal Sekletar
2014-12-04 02:43:02 +01:00
committed by Lennart Poettering
parent 6ed62be0b1
commit fe0b9cd3ba
+1
View File
@@ -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