1# SPDX-License-Identifier: LGPL-2.1-or-later 2# 3# This file is part of systemd. 4# 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. 9 10[Unit] 11Description=Kernel Configuration File System 12Documentation=https://www.kernel.org/doc/Documentation/filesystems/configfs/configfs.txt 13Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems 14DefaultDependencies=no 15ConditionPathExists=/sys/kernel/config 16ConditionCapability=CAP_SYS_RAWIO 17Before=sysinit.target 18 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. 23 24After=modprobe@configfs.service 25Requires=modprobe@configfs.service 26 27[Mount] 28What=configfs 29Where=/sys/kernel/config 30Type=configfs 31Options=nosuid,nodev,noexec 32