1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 # This file is part of systemd.
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
11 Description=Kernel Configuration File System
12 Documentation=https://docs.kernel.org/filesystems/configfs.html
13 Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
14 DefaultDependencies=no
15 ConditionPathExists=/sys/kernel/config
16 ConditionCapability=CAP_SYS_RAWIO
19 # These dependencies are used to make certain that the module is fully
20 # loaded. Indeed udev starts this unit when it receives an uevent for the
21 # module but the kernel sends it too early, ie before the init() of the module
22 # is fully operational and /sys/kernel/config is created, see issue#17586.
24 After=modprobe@configfs.service
25 Requires=modprobe@configfs.service
29 Where=/sys/kernel/config
31 Options=nosuid,nodev,noexec