Changeset a64fd5a for bootscripts/lfs


Ignore:
Timestamp:
11/14/2011 08:46:34 PM (12 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
6325a7e
Parents:
9813d5e3
Message:

Tweak when boot log is saved

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9662 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/init.d/rc

    r9813d5e3 ra64fd5a  
    204204
    205205# Copy the boot log on initial boot only
    206 if [ "${previous}" == "N" ]; then
     206if [ "${previous}" == "N" -a  "${runlevel}" != "S" ]; then
    207207   cat /run/var/bootlog >> /var/log/boot.log
    208 
    209    if [ "${runlevel}" != "S" ]; then
    210       # Mark the end of boot
    211       echo "--------" >> /var/log/boot.log
    212       # Remove the temporary file
    213       rm -f /run/var/bootlog 2> /dev/null
    214    fi
     208     
     209   # Mark the end of boot
     210   echo "--------" >> /var/log/boot.log
     211   
     212   # Remove the temporary file
     213   rm -f /run/var/bootlog 2> /dev/null
    215214fi
    216215
Note: See TracChangeset for help on using the changeset viewer.