1PSTORE.CONF(5) pstore.conf PSTORE.CONF(5)
2
3
4
6 pstore.conf, pstore.conf.d - PStore configuration file
7
9 /etc/systemd/pstore.conf /etc/systemd/pstore.conf.d/*
10
12 This file configures the behavior of systemd-pstore(8), a tool for
13 archiving the contents of the persistent storage filesystem, pstore[1].
14
16 The default configuration is set during compilation, so configuration
17 is only needed when it is necessary to deviate from those defaults.
18 Initially, the main configuration file in /etc/systemd/ contains
19 commented out entries showing the defaults as a guide to the
20 administrator. Local overrides can be created by editing this file or
21 by creating drop-ins, as described below. Using drop-ins for local
22 configuration is recommended over modifications to the main
23 configuration file.
24
25 In addition to the "main" configuration file, drop-in configuration
26 snippets are read from /usr/lib/systemd/*.conf.d/,
27 /usr/local/lib/systemd/*.conf.d/, and /etc/systemd/*.conf.d/. Those
28 drop-ins have higher precedence and override the main configuration
29 file. Files in the *.conf.d/ configuration subdirectories are sorted by
30 their filename in lexicographic order, regardless of in which of the
31 subdirectories they reside. When multiple files specify the same
32 option, for options which accept just a single value, the entry in the
33 file sorted last takes precedence, and for options which accept a list
34 of values, entries are collected as they occur in the sorted files.
35
36 When packages need to customize the configuration, they can install
37 drop-ins under /usr/. Files in /etc/ are reserved for the local
38 administrator, who may use this logic to override the configuration
39 files installed by vendor packages. Drop-ins have to be used to
40 override package drop-ins, since the main configuration file has lower
41 precedence. It is recommended to prefix all filenames in those
42 subdirectories with a two-digit number and a dash, to simplify the
43 ordering of the files.
44
45 To disable a configuration file supplied by the vendor, the recommended
46 way is to place a symlink to /dev/null in the configuration directory
47 in /etc/, with the same filename as the vendor configuration file.
48
50 All options are configured in the [PStore] section:
51
52 Storage=
53 Controls where to archive (i.e. copy) files from the pstore
54 filesystem. One of "none", "external", and "journal". When "none",
55 the tool exits without processing files in the pstore filesystem.
56 When "external" (the default), files are archived into
57 /var/lib/systemd/pstore/, and logged into the journal. When
58 "journal", pstore file contents are logged only in the journal.
59
60 Unlink=
61 Controls whether or not files are removed from pstore after
62 processing. Takes a boolean value. When true, a pstore file is
63 removed from the pstore once it has been archived (either to disk
64 or into the journal). When false, processing of pstore files occurs
65 normally, but the files remain in the pstore. The default is true
66 in order to maintain the pstore in a nearly empty state, so that
67 the pstore has storage available for the next kernel error event.
68
69 The defaults for all values are listed as comments in the template
70 /etc/systemd/pstore.conf file that is installed by default.
71
73 systemd-journald.service(8)
74
76 1. pstore
77 https://docs.kernel.org/admin-guide/abi-testing.html#abi-sys-fs-pstore
78
79
80
81systemd 254 PSTORE.CONF(5)