Changeset 25596ffb


Ignore:
Timestamp:
06/08/2021 05:31:17 PM (3 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
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, 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:
c36301e7, f780602
Parents:
06cdaed
Message:

Make stopping the network interfaces more robust.
SysV only.

When stopping or rebooting the system, the network boot script is run and looks
at all the /etc/sysconfig/ifconfig.* files. Some of the devices these files
refer to may not be active or even refer to interfaces that are not defined on
the current system. This change ignores non-existant interfaces and any
interfaces that are not UP. This change also avoids bogus warning or error
error messages when the system is shutting down.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/ChangeLog

    r06cdaed r25596ffb  
     12021-06-08 Bruce Dubbs <bdubbs@linuxfromscratch.org>
     2   * When shutting down the network, ignore invalid interfaces
     3     or interfaces that are not UP.
     4
    152021-06-02 Thomas Trepl <thomas@linuxfromscratch.org>
    26   * Prevent sendsignals from killing an active mdmon
     
    610   * Use a better methog for killproc to remove a dead pid file.
    711   * Clarify what signals killproc accepts.
    8    * Thanks to input an ddiscussion from Scott Andrews.
     12   * Thanks to input and discussion from Scott Andrews.
    913
    10142021-02-01 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  • bootscripts/lfs/init.d/network

    r06cdaed r25596ffb  
    3636
    3737         # Skip if $file is * (because nothing was found)
    38          if [ "${interface}" = "*" ]
    39          then
    40             continue
    41          fi
     38         if [ "${interface}" = "*" ]; then continue; fi
    4239
    4340         /sbin/ifup ${interface}
     
    6259
    6360         # Skip if $file is * (because nothing was found)
    64          if [ "${interface}" = "*" ]
    65          then
    66             continue
    67          fi
     61         if [ "${interface}" = "*" ]; then continue; fi
     62
     63         # See if interface exists
     64         if [ ! -e /sys/class/net/$interface ]; then continue; fi
     65
     66         # Is interface UP?
     67         ip link show $interface 2>/dev/null | grep -q "state UP"
     68         if [ $? -ne 0 ];  then continue; fi
    6869
    6970         /sbin/ifdown ${interface}
  • chapter01/changelog.xml

    r06cdaed r25596ffb  
    4444    -->
    4545    <listitem revision="sysv">
     46      <para>2021-06-08</para>
     47      <itemizedlist>
     48        <listitem>
     49          <para>[bdubbs] - Make shutting down the netwrok more robust.</para>
     50        </listitem>
     51      </itemizedlist>
     52    </listitem>
     53
     54    <listitem revision="sysv">
    4655      <para>2021-06-02</para>
    4756      <itemizedlist>
  • packages.ent

    r06cdaed r25596ffb  
    377377<!ENTITY less-fin-sbu "less than 0.1 SBU">
    378378
    379 <!ENTITY lfs-bootscripts-version "20210602">      <!-- Scripts depend on this format -->
     379<!ENTITY lfs-bootscripts-version "20210608">      <!-- Scripts depend on this format -->
    380380<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">       
    381381<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.xz">
Note: See TracChangeset for help on using the changeset viewer.