2020-11-09 07:23:58 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-11-18 19:35:03 +03:00
#
2011-09-13 19:01:56 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04:00
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
2011-09-13 19:01:56 +04:00
# (at your option) any later version.
[Unit]
2017-05-10 14:09:52 +03:00
Description = Kernel Configuration File System
2012-06-27 03:07:04 +04:00
Documentation = https://www.kernel.org/doc/Documentation/filesystems/configfs/configfs.txt
2017-06-29 05:54:12 +03:00
Documentation = https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
2011-09-13 19:01:56 +04:00
DefaultDependencies = no
2020-11-20 13:52:36 +03:00
ConditionPathExists = /sys/kernel/config
2014-07-04 05:10:09 +04:00
ConditionCapability = CAP_SYS_RAWIO
2011-09-21 05:20:28 +04:00
Before = sysinit.target
2011-09-13 19:01:56 +04:00
2020-11-19 11:17:19 +03:00
# These dependencies are used to make certain that the module is fully
# loaded. Indeed udev starts this unit when it receives an uevent for the
# module but the kernel sends it too early, ie before the init() of the module
# is fully operational and /sys/kernel/config is created, see issue#17586.
After = modprobe@configfs.service
Requires = modprobe@configfs.service
2011-09-13 19:01:56 +04:00
[Mount]
What = configfs
Where = /sys/kernel/config
Type = configfs
2019-03-25 21:39:00 +03:00
Options = nosuid,nodev,noexec