I'd like to keep the previous dmesg.log after a reboot. 10 August 2023, 11:27:21 If the machine crashes, I'd like to be able to read any kernel panic or other issue.However, after a reboot, only the current one is available.Is there a way to keep the previous one?Thanks.
Re: I'd like to keep the previous dmesg.log after a reboot. Reply #1 – 10 August 2023, 11:56:27 Both metalog and syslog-ng can log everything, including dmesg, if configured so. Otherwise, here's a quick'n'dirty hack you can put in rc.local:Code: [Select]dmesg -wHT >>/var/log/dmesg-prev.log &[EDIT reason: added '&'] Last Edit: 10 August 2023, 20:15:52 by nous 1 Likes
Re: I'd like to keep the previous dmesg.log after a reboot. Reply #2 – 10 August 2023, 18:38:44 Thanks.
Re: I'd like to keep the previous dmesg.log after a reboot. Reply #3 – 07 November 2024, 21:05:13 This is an option in bootmisc.Edit /etc/conf.d/bootmisc to set log_dmesg="yes"previous_dmesg="yes" 1 Likes
Re: I'd like to keep the previous dmesg.log after a reboot. Reply #4 – 09 November 2024, 01:38:23 Quote from: engineer – on 07 November 2024, 21:05:13This is an option in bootmisc.Edit /etc/conf.d/bootmisc to set log_dmesg="yes"previous_dmesg="yes"part of openrc.