mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 21:51:37 +00:00
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:
committed by
Lennart Poettering
parent
6ed62be0b1
commit
fe0b9cd3ba
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user