From fe0b9cd3ba25fb5063b6782983dde0a0c9915660 Mon Sep 17 00:00:00 2001 From: Michal Sekletar Date: Wed, 12 Nov 2014 15:19:42 +0100 Subject: 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. --- units/dev-hugepages.mount | 1 + 1 file changed, 1 insertion(+) (limited to 'units') 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 -- cgit v1.2.3-54-g00ecf