diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-07-02 01:00:00 +0200 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2011-07-07 12:28:06 +0200 |
commit | bb91b7fdee70f7dd8fcf18afc650c307c7b69278 (patch) | |
tree | 0a11c4fdecb6ff6d126e4f6fc2c19c4b35269398 | |
parent | 9ccab362ff32a93a7d64c65b23718e10e41a52ad (diff) | |
download | systemd-bb91b7fdee70f7dd8fcf18afc650c307c7b69278.tar.gz systemd-bb91b7fdee70f7dd8fcf18afc650c307c7b69278.tar.bz2 systemd-bb91b7fdee70f7dd8fcf18afc650c307c7b69278.zip |
units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled in kernel
-rw-r--r-- | units/dev-hugepages.automount | 1 | ||||
-rw-r--r-- | units/dev-mqueue.automount | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/units/dev-hugepages.automount b/units/dev-hugepages.automount index dfd3868ef8..6e03df3560 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 73c4110efd..1061597571 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 |