summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-02 01:00:00 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-02 01:00:00 +0200
commit26b8e979c8a6340180716f686dbe26e4906bc568 (patch)
treeae6214b7a4f956b0120eb70659b8fb6e730b67b1
parentdee87d612d295d9c8642b76c716b8e357411e65a (diff)
units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled in kernel
-rw-r--r--units/dev-hugepages.automount1
-rw-r--r--units/dev-mqueue.automount1
2 files changed, 2 insertions, 0 deletions
diff --git a/units/dev-hugepages.automount b/units/dev-hugepages.automount
index dfd3868ef8..6e03df3560 100644
--- a/units/dev-hugepages.automount
+++ b/units/dev-hugepages.automount
@@ -9,6 +9,7 @@
Description=Huge Pages File System Automount Point
DefaultDependencies=no
Before=sysinit.target
+ConditionPathExists=/sys/kernel/mm/hugepages
[Automount]
Where=/dev/hugepages
diff --git a/units/dev-mqueue.automount b/units/dev-mqueue.automount
index 73c4110efd..1061597571 100644
--- a/units/dev-mqueue.automount
+++ b/units/dev-mqueue.automount
@@ -9,6 +9,7 @@
Description=POSIX Message Queue File System Automount Point
DefaultDependencies=no
Before=sysinit.target
+ConditionPathExists=/proc/sys/fs/mqueue
[Automount]
Where=/dev/mqueue