bootmisc: optionally save the previous dmesg log
X-Gentoo-Bug: 561204 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=561204
This commit is contained in:
@@ -216,6 +216,9 @@ start()
|
||||
case "$RC_SYS" in
|
||||
VSERVER|OPENVZ|LXC|SYSTEMD-NSPAWN) ;;
|
||||
*)
|
||||
if yesno ${previous_dmesg:-no}; then
|
||||
mv /var/log/dmesg /var/log/dmesg.old
|
||||
fi
|
||||
dmesg > /var/log/dmesg
|
||||
chmod 640 /var/log/dmesg
|
||||
;;
|
||||
|
Reference in New Issue
Block a user