mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-17 16:55:25 +01:00
Various fixes from rebase
This took a while so a bunch of stuff got broken in rebase.
This commit is contained in:
parent
b614b3021d
commit
25f37ba926
28 changed files with 196 additions and 90 deletions
24
sysc/run.sh
24
sysc/run.sh
|
|
@ -27,11 +27,31 @@ create_fhs() {
|
|||
echo 'nameserver 1.1.1.1' > /etc/resolv.conf
|
||||
}
|
||||
|
||||
populate_device_nodes ""
|
||||
populate_device_nodes
|
||||
|
||||
create_fhs
|
||||
|
||||
mkdir -p "${DISTFILES}"
|
||||
# Obtain network connection
|
||||
if [ "${CHROOT}" = "False" ]; then
|
||||
dhcpcd --waitip=4
|
||||
# Ensure network accessible
|
||||
timeout=120
|
||||
while ! curl example.com >/dev/null 2>&1; do
|
||||
sleep 1
|
||||
# shellcheck disable=SC2219
|
||||
let timeout--
|
||||
if [ "${timeout}" -le 0 ]; then
|
||||
echo "Timeout reached for internet to become accessible"
|
||||
false
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -e "${SOURCES}/distfiles" ]; then
|
||||
mv "${SOURCES}/distfiles" /
|
||||
else
|
||||
mkdir -p "${DISTFILES}"
|
||||
fi
|
||||
|
||||
build bash-5.1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue