Replace the entire live CD build pipeline: - Alpine SDK + mkimage + genapkovl → Debian live-build (lb config/build) - OpenRC init scripts → systemd service units - dropbear → openssh-server (native to Debian live) - udhcpc → dhclient for DHCP - apk → apt-get in setup-builder.sh and build-nvidia-module.sh - Add auto/config (lb config options) and auto/build wrapper - Add config/package-lists/bee.list.chroot replacing Alpine apks - Add config/hooks/normal/9000-bee-setup.hook.chroot to enable services - Add bee-nvidia-load and bee-sshsetup helper scripts - Keep NVIDIA pre-compile pipeline (Option B): compile on builder VM against pinned Debian kernel headers (DEBIAN_KERNEL_ABI), inject .ko into includes.chroot - Fixes: native glibc (no gcompat shims), proper udev, writable /lib/modules, no Alpine modloop read-only constraint, no stale apk cache issues Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
845 B
Bash
31 lines
845 B
Bash
#!/bin/sh
|
|
# bee-network.sh — bring up all physical network interfaces via DHCP
|
|
# Unattended: runs silently, logs results, never blocks.
|
|
|
|
LOG_PREFIX="bee-network"
|
|
|
|
log() { echo "[$LOG_PREFIX] $*"; }
|
|
|
|
# find physical interfaces: exclude lo and virtual (docker/virbr/veth/tun/tap)
|
|
interfaces=$(ip -o link show \
|
|
| awk -F': ' '{print $2}' \
|
|
| grep -v '^lo$' \
|
|
| grep -vE '^(docker|virbr|veth|tun|tap|br-|bond|dummy)' \
|
|
| sort)
|
|
|
|
if [ -z "$interfaces" ]; then
|
|
log "no physical interfaces found"
|
|
exit 0
|
|
fi
|
|
|
|
for iface in $interfaces; do
|
|
log "bringing up $iface"
|
|
ip link set "$iface" up 2>/dev/null || { log "WARN: could not bring up $iface"; continue; }
|
|
|
|
# DHCP in background — non-blocking, retries indefinitely
|
|
dhclient -nw "$iface" 2>/dev/null &
|
|
log "DHCP started for $iface (pid $!)"
|
|
done
|
|
|
|
log "done"
|