From 09e60338b08175aebb9ace428ff596b7155f2ae9 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 26 Aug 2025 22:44:28 -0500 Subject: [PATCH] Update network boot script corner case. Change 'return' to exit in network script. --- bootscripts/ChangeLog | 3 +++ bootscripts/lfs/init.d/network | 2 +- chapter01/changelog.xml | 9 +++++++++ chapter01/whatsnew.xml | 4 ++-- packages.ent | 2 +- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/bootscripts/ChangeLog b/bootscripts/ChangeLog index 41576792f..85a0de5b7 100644 --- a/bootscripts/ChangeLog +++ b/bootscripts/ChangeLog @@ -1,3 +1,6 @@ +2025-08-27 Bruce Dubbs + * Change 'return' to exit in network script. + 2024-08-25 Xi Ruoyao * Remove an empty line and an outdated comment (not valid anymore after /usr merge) from init-functions. diff --git a/bootscripts/lfs/init.d/network b/bootscripts/lfs/init.d/network index 5b2dd9b97..a15afc927 100644 --- a/bootscripts/lfs/init.d/network +++ b/bootscripts/lfs/init.d/network @@ -30,7 +30,7 @@ case "${1}" in start) # if the default route exists, network is already configured - if ip route | grep -q "^default"; then return 0; fi + if ip route | grep -q "^default"; then exit 0; fi # Start all network interfaces for file in /etc/sysconfig/ifconfig.* do diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 80d1b1ce8..11123c353 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,15 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2025-08-27 + + + [bdubbs] - Update network boot script corner case. + + + + 2025-08-15 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 0df323756..bb61020ff 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -143,9 +143,9 @@ Less-&less-version; - + Libcap-&libcap-version; diff --git a/packages.ent b/packages.ent index a943a3968..9c158c48c 100644 --- a/packages.ent +++ b/packages.ent @@ -373,7 +373,7 @@ - +