]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - units/sys-kernel-debug.mount
systemctl: Prevent state_missing from being used uninit
[thirdparty/systemd.git] / units / sys-kernel-debug.mount
index 53d107260b2fd027a844ee25ec8b81fd41782e7a..618270ddae8ab75200d402b4ed9c25f481815517 100644 (file)
@@ -1,15 +1,23 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
 #  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
+#  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
 #  (at your option) any later version.
 
 [Unit]
-Description=Debug File System
+Description=Kernel Debug File System
+Documentation=https://www.kernel.org/doc/Documentation/filesystems/debugfs.txt
+Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
 DefaultDependencies=no
+ConditionPathExists=/sys/kernel/debug
+ConditionCapability=CAP_SYS_RAWIO
+Before=sysinit.target
 
 [Mount]
 What=debugfs
 Where=/sys/kernel/debug
 Type=debugfs
+Options=nosuid,nodev,noexec