mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Tweak when boot log is saved
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9662 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
9813d5e328
commit
a64fd5aa90
@ -203,15 +203,14 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy the boot log on initial boot only
|
# Copy the boot log on initial boot only
|
||||||
if [ "${previous}" == "N" ]; then
|
if [ "${previous}" == "N" -a "${runlevel}" != "S" ]; then
|
||||||
cat /run/var/bootlog >> /var/log/boot.log
|
cat /run/var/bootlog >> /var/log/boot.log
|
||||||
|
|
||||||
if [ "${runlevel}" != "S" ]; then
|
|
||||||
# Mark the end of boot
|
# Mark the end of boot
|
||||||
echo "--------" >> /var/log/boot.log
|
echo "--------" >> /var/log/boot.log
|
||||||
|
|
||||||
# Remove the temporary file
|
# Remove the temporary file
|
||||||
rm -f /run/var/bootlog 2> /dev/null
|
rm -f /run/var/bootlog 2> /dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# End rc
|
# End rc
|
||||||
|
Loading…
Reference in New Issue
Block a user