config.logging.persistent enables /dev/pmsg0
- whatever's written to /dev/pmsg0 appears as /sys/fs/pstore/pmsg-ramoops-0 after reboot - only works on devices with the relevant device tree support (gl-ar750 and whatever has it by default) - nothing in the system is actually writing this file yet - or reading it at boot time, for that matter
This commit is contained in:
@@ -212,6 +212,9 @@ let
|
||||
in {
|
||||
options = {
|
||||
logging = {
|
||||
persistent = {
|
||||
enable = mkEnableOption "store logs across reboots";
|
||||
};
|
||||
shipping = {
|
||||
enable = mkEnableOption "unix socket for log shipping";
|
||||
socket = mkOption {
|
||||
@@ -263,6 +266,11 @@ in {
|
||||
)];
|
||||
|
||||
config = {
|
||||
kernel.config = mkIf config.logging.persistent.enable {
|
||||
PSTORE = "y";
|
||||
PSTORE_PMSG = "y";
|
||||
PSTORE_RAM = "y";
|
||||
};
|
||||
filesystem = dir {
|
||||
etc = dir {
|
||||
s6-rc = dir {
|
||||
|
Reference in New Issue
Block a user