units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled in kernel

This commit is contained in:
Lennart Poettering 2011-07-02 01:00:00 +02:00
parent dee87d612d
commit 26b8e979c8
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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