summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-26 20:16:09 +0100
committerGitHub <noreply@github.com>2021-03-26 20:16:09 +0100
commit008adf875e356b7c3258b5b0aff55a8f9480e340 (patch)
tree988d3a83732056e50e68b771a26b923d69947d74
parent9ddf099f306b79e74b2c60acd4c762a799d76835 (diff)
parentd83e90c73cf25a839f5e60f355baa0d38364ff41 (diff)
downloadsystemd-008adf875e356b7c3258b5b0aff55a8f9480e340.tar.gz
Merge pull request #19125 from keszybz/cat-config
config files: recommend systemd-analyze cat-config
-rw-r--r--hwdb.d/README11
-rw-r--r--hwdb.d/meson.build1
-rw-r--r--meson.build3
-rw-r--r--modprobe.d/README7
-rw-r--r--rules.d/README8
-rw-r--r--rules.d/meson.build4
-rw-r--r--src/core/system.conf.in2
-rw-r--r--src/coredump/coredump.conf2
-rw-r--r--src/home/homed.conf2
-rw-r--r--src/journal/journald.conf2
-rw-r--r--src/login/logind.conf.in2
-rw-r--r--src/oom/oomd.conf2
-rw-r--r--src/resolve/resolved.conf.in2
-rw-r--r--sysctl.d/README8
-rw-r--r--sysctl.d/meson.build1
-rw-r--r--sysusers.d/README8
-rw-r--r--sysusers.d/meson.build4
-rw-r--r--tmpfiles.d/README8
-rw-r--r--tmpfiles.d/meson.build27
19 files changed, 90 insertions, 14 deletions
diff --git a/hwdb.d/README b/hwdb.d/README
new file mode 100644
index 0000000000..594f5bfe0d
--- /dev/null
+++ b/hwdb.d/README
@@ -0,0 +1,11 @@
+Files in this directory specify a description of hardware devices, in the form
+of mappings from modalias-like keys (which identify specific hardware devices)
+to udev properties.
+
+Files in this directory are not read by udev directly. Instead,
+man:systemd-hwdb(8) compiles them into a binary database.
+
+See man:hwdb(7) for an overview of the configuration file format, and
+man:systemd-udevd.service(8) for a description of the udev daemon.
+
+Use 'systemd-analyze cat-config udev/hwdb.d' to display the effective config.
diff --git a/hwdb.d/meson.build b/hwdb.d/meson.build
index 54c6f4d5e2..7221a1ae9f 100644
--- a/hwdb.d/meson.build
+++ b/hwdb.d/meson.build
@@ -4,6 +4,7 @@
# they are very long but quite repetitive and the parser is not very fast.
# So we don't "test" them.
hwdb_files_notest = files('''
+ README
20-dmi-id.hwdb
20-pci-vendor-model.hwdb
20-pci-classes.hwdb
diff --git a/meson.build b/meson.build
index 4d876e83fc..f41a811e2e 100644
--- a/meson.build
+++ b/meson.build
@@ -3472,7 +3472,8 @@ if install_sysconfdir
install_data('xorg/50-systemd-user.sh',
install_dir : xinitrcdir)
endif
-install_data('modprobe.d/systemd.conf',
+install_data('README',
+ 'modprobe.d/systemd.conf',
install_dir : modprobedir)
install_data('LICENSE.GPL2',
'LICENSE.LGPL2.1',
diff --git a/modprobe.d/README b/modprobe.d/README
new file mode 100644
index 0000000000..4c11e46df1
--- /dev/null
+++ b/modprobe.d/README
@@ -0,0 +1,7 @@
+Files in this directory contain configuration for modprobe, a program to load
+kernel modules.
+
+See man:modprobe.d(5) for explanation of the configuration file format, and
+man:modprobe(8) for a description of the program itself.
+
+Use 'systemd-analyze cat-config modprobe.d' to display the effective config.
diff --git a/rules.d/README b/rules.d/README
new file mode 100644
index 0000000000..294d6eeb5d
--- /dev/null
+++ b/rules.d/README
@@ -0,0 +1,8 @@
+Files in this directory contain configuration for systemd-udev.service, a
+daemon that manages symlinks to device nodes, permissions of devices nodes,
+emits device events for userspace, and renames network interfaces.
+
+See man:udev(7) for an overview of the configuration file format, and
+man:systemd-udevd.service(8) for a description of service itself.
+
+Use 'systemd-analyze cat-config udev/rules.d' to display the effective config.
diff --git a/rules.d/meson.build b/rules.d/meson.build
index d29564513d..42fa451c6b 100644
--- a/rules.d/meson.build
+++ b/rules.d/meson.build
@@ -1,5 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
+install_data(
+ 'README',
+ install_dir : udevrulesdir)
+
rules = files('''
60-autosuspend.rules
60-block.rules
diff --git a/src/core/system.conf.in b/src/core/system.conf.in
index b8805b02fa..fa6fb690c7 100644
--- a/src/core/system.conf.in
+++ b/src/core/system.conf.in
@@ -10,6 +10,8 @@
# the system.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
+# Use 'systemd-analyze cat-config systemd/system.conf' to display the full config.
+#
# See systemd-system.conf(5) for details.
[Manager]
diff --git a/src/coredump/coredump.conf b/src/coredump/coredump.conf
index 738c45bed2..56c1008245 100644
--- a/src/coredump/coredump.conf
+++ b/src/coredump/coredump.conf
@@ -10,6 +10,8 @@
# the system.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
+# Use 'systemd-analyze cat-config systemd/coredump.conf' to display the full config.
+#
# See coredump.conf(5) for details.
[Coredump]
diff --git a/src/home/homed.conf b/src/home/homed.conf
index 86b6266895..ba854641df 100644
--- a/src/home/homed.conf
+++ b/src/home/homed.conf
@@ -10,6 +10,8 @@
# the system.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
+# Use 'systemd-analyze cat-config systemd/homed.conf' to display the full config.
+#
# See homed.conf(5) for details.
[Home]
diff --git a/src/journal/journald.conf b/src/journal/journald.conf
index ee674ebefe..18d6b30773 100644
--- a/src/journal/journald.conf
+++ b/src/journal/journald.conf
@@ -10,6 +10,8 @@
# the system.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
+# Use 'systemd-analyze cat-config systemd/journald.conf' to display the full config.
+#
# See journald.conf(5) for details.
[Journal]
diff --git a/src/login/logind.conf.in b/src/login/logind.conf.in
index 800c452a60..76f529c176 100644
--- a/src/login/logind.conf.in
+++ b/src/login/logind.conf.in
@@ -10,6 +10,8 @@
# the system.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
+# Use 'systemd-analyze cat-config systemd/logind.conf' to display the full config.
+#
# See logind.conf(5) for details.
[Login]
diff --git a/src/oom/oomd.conf b/src/oom/oomd.conf
index f1bef9de6f..d1dca0d64d 100644
--- a/src/oom/oomd.conf
+++ b/src/oom/oomd.conf
@@ -10,6 +10,8 @@
# the system.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
+# Use 'systemd-analyze cat-config systemd/oomd.conf' to display the full config.
+#
# See oomd.conf(5) for details
[OOM]
diff --git a/src/resolve/resolved.conf.in b/src/resolve/resolved.conf.in
index 33187618e5..f88a4e97c0 100644
--- a/src/resolve/resolved.conf.in
+++ b/src/resolve/resolved.conf.in
@@ -10,6 +10,8 @@
# the system.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
+# Use 'systemd-analyze cat-config systemd/resolved.conf' to display the full config.
+#
# See resolved.conf(5) for details.
[Resolve]
diff --git a/sysctl.d/README b/sysctl.d/README
new file mode 100644
index 0000000000..ab216b108e
--- /dev/null
+++ b/sysctl.d/README
@@ -0,0 +1,8 @@
+Files in this directory contain configuration for systemd-sysctl.service, a
+service to configure sysctl kernel parameters.
+
+See man:sysctl.d(5) for explanation of the configuration file format, and
+man:sysctl(8) and man:systemd-sysctl.service(8) for a description of when and
+how this configuration is applied.
+
+Use 'systemd-analyze cat-config sysctl.d' to display the effective config.
diff --git a/sysctl.d/meson.build b/sysctl.d/meson.build
index e8d8fc8c53..7e3482af62 100644
--- a/sysctl.d/meson.build
+++ b/sysctl.d/meson.build
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
install_data(
+ 'README',
'50-default.conf',
install_dir : sysctldir)
diff --git a/sysusers.d/README b/sysusers.d/README
new file mode 100644
index 0000000000..df3049cc53
--- /dev/null
+++ b/sysusers.d/README
@@ -0,0 +1,8 @@
+Files in this directory contain configuration for systemd-sysusers, a program
+to allocate system users and groups.
+
+See man:sysusers.d(5) for explanation of the configuration file format, and
+man:systemd-sysusers(8) for a description of when and how this configuration is
+applied.
+
+Use 'systemd-analyze cat-config sysusers.d' to display the effective config.
diff --git a/sysusers.d/meson.build b/sysusers.d/meson.build
index 93a61f0d9a..ef809a4f44 100644
--- a/sysusers.d/meson.build
+++ b/sysusers.d/meson.build
@@ -1,5 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
+if enable_sysusers
+ install_data('README', install_dir : sysusersdir)
+endif
+
in_files = ['basic.conf']
foreach file : in_files
diff --git a/tmpfiles.d/README b/tmpfiles.d/README
new file mode 100644
index 0000000000..b42cec2745
--- /dev/null
+++ b/tmpfiles.d/README
@@ -0,0 +1,8 @@
+Files in this directory contain configuration for systemd-tmpfiles, a program
+to create, delete, and clean up volatile and temporary files and directories.
+
+See man:tmpfiles.d(5) for explanation of the configuration file format, and
+man:systemd-tmpfiles(8) for a description of when and how this configuration is
+applied.
+
+Use 'systemd-analyze cat-config tmpfiles.d' to display the effective config.
diff --git a/tmpfiles.d/meson.build b/tmpfiles.d/meson.build
index 7322460dba..d5d4bbc9ea 100644
--- a/tmpfiles.d/meson.build
+++ b/tmpfiles.d/meson.build
@@ -2,19 +2,20 @@
enable_tmpfiles = conf.get('ENABLE_TMPFILES') == 1
-tmpfiles = [['home.conf', ''],
- ['journal-nocow.conf', ''],
- ['systemd-nologin.conf', 'HAVE_PAM'],
- ['systemd-nspawn.conf', 'ENABLE_MACHINED'],
- ['systemd-tmp.conf', ''],
- ['portables.conf', 'ENABLE_PORTABLED'],
- ['systemd-pstore.conf', 'ENABLE_PSTORE'],
- ['tmp.conf', ''],
- ['x11.conf', ''],
- ['legacy.conf', 'HAVE_SYSV_COMPAT'],
- ]
-
-foreach pair : tmpfiles
+files = [['README', ''],
+ ['home.conf', ''],
+ ['journal-nocow.conf', ''],
+ ['systemd-nologin.conf', 'HAVE_PAM'],
+ ['systemd-nspawn.conf', 'ENABLE_MACHINED'],
+ ['systemd-tmp.conf', ''],
+ ['portables.conf', 'ENABLE_PORTABLED'],
+ ['systemd-pstore.conf', 'ENABLE_PSTORE'],
+ ['tmp.conf', ''],
+ ['x11.conf', ''],
+ ['legacy.conf', 'HAVE_SYSV_COMPAT'],
+ ]
+
+foreach pair : files
if not enable_tmpfiles
# do nothing
elif pair[1] == '' or conf.get(pair[1]) == 1