From 26b8e979c8a6340180716f686dbe26e4906bc568 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 2 Jul 2011 01:00:00 +0200 Subject: [PATCH] units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled in kernel --- units/dev-hugepages.automount | 1 + units/dev-mqueue.automount | 1 + 2 files changed, 2 insertions(+) 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 -- 2.39.5