]> err.no Git - systemd/commitdiff
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 dfd3868ef8da5f0bdafc976504f3eaeee694f676..6e03df3560f754da54d8beabc4788355738cc68a 100644 (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
index 73c4110efd264f4bc1858cfc6757c1986e1be9f4..10615975716b442249001cf670699c68e36b3490 100644 (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