Changeset c899581 for bootscripts/lfs


Ignore:
Timestamp:
03/22/2012 09:30:39 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.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:
e77cfbf
Parents:
2423c94
Message:

Bootscript enhancements

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

Location:
bootscripts/lfs
Files:
3 edited

Legend:

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

    r2423c94 rc899581  
    4343case "${1}" in
    4444   start)
    45 
    46       # If any LVM based partitions are on the system, ensure they
    47       # are activated so they can be checked/used.
    48       if [ -x /sbin/vgchange ]; then
    49          /sbin/vgchange -a y >/dev/null
    50       fi
    51 
    5245      if [ -f /fastboot ]; then
    5346         msg="/fastboot found, will omit "
  • bootscripts/lfs/init.d/udev

    r2423c94 rc899581  
    5959      # Now wait for udevd to process the uevents we triggered
    6060      /sbin/udevadm settle
     61
     62      # If any LVM based partitions are on the system, ensure they
     63      # are activated so they can be used.
     64      if [ -x /sbin/vgchange ]; then /sbin/vgchange -a y >/dev/null; fi
     65
    6166      log_success_msg2
    6267      ;;
  • bootscripts/lfs/lib/services/ipv4-static

    r2423c94 rc899581  
    4343case "${2}" in
    4444   up)
    45       if [ "$(ip addr show ${1} 2>/dev/null | grep ${IP})" == "" ]; then
     45      if [ "$(ip addr show ${1} 2>/dev/null | grep ${IP}/)" == "" ]; then
    4646         
    4747         # Cosmetic output not needed for multiple services
     
    7070
    7171   down)
    72       if [ "$(ip addr show ${1} 2>/dev/null | grep ${IP})" != "" ]; then
     72      if [ "$(ip addr show ${1} 2>/dev/null | grep ${IP}/)" != "" ]; then
    7373         log_info_msg "Removing IPv4 address ${IP} from the ${1} interface..."
    7474         ip addr del ${args} dev ${1}
Note: See TracChangeset for help on using the changeset viewer.