Systemd/tmpfiles.d
Eric DeVolder f00c36641a pstore: introduce tmpfiles.d/systemd-pstore.conf
The systemd pstore service archives the contents of /sys/fs/pstore
upon boot so that there is room for a subsequent dump.  The issue is
that while the service is present, the kernel still needs to be
configured to write data into the pstore. The kernel has two
parameters, crash_kexec_post_notifiers and printk.always_kmsg_dump,
that control writes into pstore.

The crash_kexec_post_notifiers parameter enables the kernel to write
dmesg (including stack trace) into pstore upon a panic, and
printk.always_kmsg_dump parameter enables the kernel to write dmesg
upon a shutdown (shutdown, reboot, halt).

As it stands today, these parameters are not managed/manipulated by
the systemd pstore service, and are solely reliant upon the user [to
have the foresight] to set them on the kernel command line at boot, or
post boot via sysfs. Furthermore, the user would need to set these
parameters in a persistent fashion so that that they are enabled on
subsequent reboots.

This patch introduces the setting of these two kernel parameters via
the systemd tmpfiles technique.
2020-05-15 23:15:26 +02:00
..
etc.conf.m4 tmpfiles: copy files to /etc only on boot 2019-07-25 19:13:41 +02:00
home.conf
journal-nocow.conf
legacy.conf
meson.build pstore: introduce tmpfiles.d/systemd-pstore.conf 2020-05-15 23:15:26 +02:00
portables.conf
static-nodes-permissions.conf.in tmpfiles: override permissions of static nodes that need this 2019-08-19 12:08:14 +02:00
systemd-nologin.conf Corect man page reference in systemd-nologin.conf comments 2019-09-24 09:48:03 +02:00
systemd-nspawn.conf
systemd-pstore.conf pstore: introduce tmpfiles.d/systemd-pstore.conf 2020-05-15 23:15:26 +02:00
systemd-tmp.conf
systemd.conf.m4 tmpfiles: apply ACLs to top-level journal directory in /run, too 2020-01-31 15:04:12 +01:00
tmp.conf
var.conf.m4
x11.conf