From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonatan Schlag To: development@lists.ipfire.org Subject: Start local and uplink network independent Date: Tue, 23 May 2023 19:23:00 +0200 Message-ID: <20230523172314.7826-1-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6296136636224851696==" List-Id: --===============6296136636224851696== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, this is the first try for a patch series which makes the startup of local and= uplink networks independent. This resolves in the end #11502. It should furt= her allow us to keep waiting for a DHCP lease, because at least our local net= works are all up when we get to the red network. This might have some small q= uirks, even when my testing so far shows no problems. I still think it is now= better to share result, then to wait any longer. As this touches quite important parts of our network stack, I might be a coul= d idea to merge this in two stages. After the patch, titled "network startup:= Clean up duplicated Code ", might be a good breaking point. But in the end,= this is up to you. Please keep in mind, I only tested the full patch set: Remove ipsec interface creation from network startup Remove Start/Stop links for client175 Use bash as shebang in network initscripts network initscripts: check if the zone in the current config exists network initscripts: Remove code for old zone scheme network scripts: remove check for AUTOCONNECT network startup: Reload routing informations for every interface network startup: Always cleanup before red gets started network startup: check for correct action at start network startup: Refactor how cmd args are processed network startup: Clean up duplicated Code network script: add extra scripts for action that depend on a network network startup: Add scripts for local and uplink network startup: Start local and uplink network independent network startup: Only work with configured zones config/rootfiles/common/aarch64/initscripts | 31 +++-- config/rootfiles/common/riscv64/initscripts | 31 +++-- config/rootfiles/common/x86_64/initscripts | 31 +++-- lfs/initscripts | 36 +++--- src/initscripts/networking/any | 31 ++++- src/initscripts/networking/functions.network | 14 +- src/initscripts/networking/red | 5 +- .../networking/red.up/99-pakfire-update | 2 +- src/initscripts/system/depends-on-network | 40 ++++++ src/initscripts/system/network | 121 ++++++++---------- 10 files changed, 218 insertions(+), 124 deletions(-) create mode 100644 src/initscripts/system/depends-on-network Looking forward to your feedback Greetings Jonatan --===============6296136636224851696==--