fix(network): gate dhcp on get_network state across boots

This commit is contained in:
vxtls 2026-03-06 09:27:41 -05:00
parent ba7aec9868
commit 65314bc926
5 changed files with 48 additions and 8 deletions

View file

@ -4,7 +4,7 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
dhcpcd --waitip=4
ensure_network_ready
# Ensure network accessible
timeout=120
while ! curl example.com >/dev/null 2>&1; do
@ -16,3 +16,6 @@ while ! curl example.com >/dev/null 2>&1; do
false
fi
done
sed -i '/^NETWORK_READY=/d' /steps/env
echo 'NETWORK_READY=True' >> /steps/env

View file

@ -19,6 +19,7 @@ export SOURCE_DATE_EPOCH=0
export KBUILD_BUILD_TIMESTAMP='@0'
export SHELL=/usr/bin/bash
DESTDIR=/tmp/destdir
NETWORK_READY=False
EOF
# The following values are set up in the kaem environment.