summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-09-21 03:16:00 +0200
committerLennart Poettering <lennart@poettering.net>2011-09-21 03:56:55 +0200
commit0286cc1551927ea93e22b2d451a8bedddfc9d4ea (patch)
treec88c9197eb9168641b265c6d0b082c4d85cf8fe7 /units
parentc72dcc54315a5bb854849e17a34c6ad8a3f9dfaa (diff)
units: drop /sys/kernel/config automount unit
The mount point directory /sys/kernel/config is only created after the module is loaded, hence there's little value in having this an automount unit: the runtime penalty for mounting an autofs here should be the same as for a real mount.
Diffstat (limited to 'units')
-rw-r--r--units/sys-kernel-config.automount15
-rw-r--r--units/sys-kernel-config.mount4
2 files changed, 3 insertions, 16 deletions
diff --git a/units/sys-kernel-config.automount b/units/sys-kernel-config.automount
deleted file mode 100644
index 1b4e81117d..0000000000
--- a/units/sys-kernel-config.automount
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is part of systemd.
-#
-# systemd is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-[Unit]
-Description=Config File System Automount Point
-DefaultDependencies=no
-Before=sysinit.target
-ConditionPathExists=/sys/kernel/config
-
-[Automount]
-Where=/sys/kernel/config
diff --git a/units/sys-kernel-config.mount b/units/sys-kernel-config.mount
index a80d052556..f64b1ac25f 100644
--- a/units/sys-kernel-config.mount
+++ b/units/sys-kernel-config.mount
@@ -6,8 +6,10 @@
# (at your option) any later version.
[Unit]
-Description=Config File System
+Description=Configuration File System
DefaultDependencies=no
+ConditionPathExists=/sys/kernel/config
+After=systemd-modules-load.service
[Mount]
What=configfs