[systemd-commits] units/dev-hugepages.mount

Lennart Poettering lennart at kemper.freedesktop.org
Wed Dec 3 17:43:31 PST 2014


 units/dev-hugepages.mount |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit fe0b9cd3ba25fb5063b6782983dde0a0c9915660
Author: Michal Sekletar <msekleta at redhat.com>
Date:   Wed Nov 12 15:19:42 2014 +0100

    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.

diff --git a/units/dev-hugepages.mount b/units/dev-hugepages.mount
index d711fae..882adb4 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



More information about the systemd-commits mailing list