mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
fix(network): gate dhcp on get_network state across boots
This commit is contained in:
parent
ba7aec9868
commit
65314bc926
5 changed files with 48 additions and 8 deletions
|
|
@ -344,7 +344,6 @@ source_line_action() {
|
|||
|
||||
# Default get function that downloads source tarballs.
|
||||
default_src_get() {
|
||||
ensure_network_ready
|
||||
# shellcheck disable=SC2153
|
||||
cd "${DISTFILES}"
|
||||
# shellcheck disable=SC2162
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue