From: Lennart Poettering Date: Fri, 1 Jul 2011 23:00:00 +0000 (+0200) Subject: units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled... X-Git-Tag: v30~67 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26b8e979c8a6340180716f686dbe26e4906bc568;p=systemd units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled in kernel --- diff --git a/units/dev-hugepages.automount b/units/dev-hugepages.automount index dfd3868e..6e03df35 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 73c4110e..10615975 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