in rc.init copy log from previous boot to place of safety

This commit is contained in:
Daniel Barlow
2025-01-01 18:20:03 +00:00
parent fd28f0ce04
commit cc94ef57fa
2 changed files with 7 additions and 11 deletions

View File

@@ -22,6 +22,11 @@ mount -t tmpfs none /tmp
mkdir /dev/pts
mount -t devpts none /dev/pts
if test -c /dev/pmsg0 ; then
mount -t pstore none /sys/fs/pstore
(cat /sys/fs/pstore/* && rm /sys/fs/pstore/*) > /run/log/previous-boot
fi
mkdir -m 0751 -p /run/services/outputs
chgrp system /run/services/outputs