chiark / gitweb /
units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled...
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Jul 2011 23:00:00 +0000 (01:00 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Jul 2011 23:00:00 +0000 (01:00 +0200)
units/dev-hugepages.automount
units/dev-mqueue.automount

index dfd3868..6e03df3 100644 (file)
@@ -9,6 +9,7 @@
 Description=Huge Pages File System Automount Point
 DefaultDependencies=no
 Before=sysinit.target
 Description=Huge Pages File System Automount Point
 DefaultDependencies=no
 Before=sysinit.target
+ConditionPathExists=/sys/kernel/mm/hugepages
 
 [Automount]
 Where=/dev/hugepages
 
 [Automount]
 Where=/dev/hugepages
index 73c4110..1061597 100644 (file)
@@ -9,6 +9,7 @@
 Description=POSIX Message Queue File System Automount Point
 DefaultDependencies=no
 Before=sysinit.target
 Description=POSIX Message Queue File System Automount Point
 DefaultDependencies=no
 Before=sysinit.target
+ConditionPathExists=/proc/sys/fs/mqueue
 
 [Automount]
 Where=/dev/mqueue
 
 [Automount]
 Where=/dev/mqueue