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

This commit is contained in:
Daniel Barlow committed 2025-01-01 18:22:45 +00:00
1 parent fd28f0ce04
commit cc94ef57fa
2 files changed
+7 -11

No files matched your search

+5
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