mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
f00c36641a
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. |
||
---|---|---|
.. | ||
etc.conf.m4 | ||
home.conf | ||
journal-nocow.conf | ||
legacy.conf | ||
meson.build | ||
portables.conf | ||
static-nodes-permissions.conf.in | ||
systemd-nologin.conf | ||
systemd-nspawn.conf | ||
systemd-pstore.conf | ||
systemd-tmp.conf | ||
systemd.conf.m4 | ||
tmp.conf | ||
var.conf.m4 | ||
x11.conf |