mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-31 03:11:57 +00: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
|
||||
|
||||
# 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
|
||||
|
||||
if [ "${runlevel}" != "S" ]; then
|
||||
# Mark the end of boot
|
||||
echo "--------" >> /var/log/boot.log
|
||||
# Remove the temporary file
|
||||
rm -f /run/var/bootlog 2> /dev/null
|
||||
fi
|
||||
|
||||
# Mark the end of boot
|
||||
echo "--------" >> /var/log/boot.log
|
||||
|
||||
# Remove the temporary file
|
||||
rm -f /run/var/bootlog 2> /dev/null
|
||||
fi
|
||||
|
||||
# End rc
|
||||
|
Loading…
Reference in New Issue
Block a user