1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00
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 tmpfiles.d: change all subvolumes to use quota 2015-10-22 01:59:25 +02:00
journal-nocow.conf tmpfiles.d/journal-nocow: fix typo (#6804) 2017-09-12 13:28:21 -03:00
legacy.conf tmpfiles: drop /run/lock/lockdev 2016-02-01 12:16:24 +01:00
meson.build pstore: introduce tmpfiles.d/systemd-pstore.conf 2020-05-15 23:15:26 +02:00
portables.conf add new portable service framework 2018-05-24 17:01:57 +02:00
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 treewide: fix typos and remove accidental repetition of words 2016-07-11 16:18:43 +02:00
systemd-pstore.conf pstore: introduce tmpfiles.d/systemd-pstore.conf 2020-05-15 23:15:26 +02:00
systemd-tmp.conf coredump: fixed bug - some coredump temp files could be lost 2019-05-31 12:57:35 +02:00
systemd.conf.m4 tmpfiles: apply ACLs to top-level journal directory in /run, too 2020-01-31 15:04:12 +01:00
tmp.conf tmpfiles: split tmp.conf out 2019-04-13 12:07:03 +02:00
var.conf.m4 tmpfiles: change btmp mode 0600 → 0660 (#6997) 2017-10-04 21:44:29 +02:00
x11.conf tmpfiles: remove old ICE and X11 sockets at boot (#6979) 2017-10-06 01:28:19 +02:00