fix: chmod +x in genapkovl to fix permissions regardless of git filemode on VM
- genapkovl now explicitly chmod +x init.d/* and usr/local/bin/* after cp - add bee-net-restart command (short name, no .sh) and /etc/profile.d/bee.sh for PATH - udhcpc: add & to ensure non-blocking even when DHCP responds immediately - motd: short commands without paths Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -70,10 +70,16 @@ rc_add dropbear default
|
||||
rc_add bee-nvidia default
|
||||
rc_add bee-audit-debug default
|
||||
|
||||
if [ -d "$OVERLAY/etc" ]; then cp -r "$OVERLAY/etc/." "$tmp/etc/"; fi
|
||||
if [ -d "$OVERLAY/etc" ]; then
|
||||
cp -r "$OVERLAY/etc/." "$tmp/etc/"
|
||||
chmod +x "$tmp/etc/init.d/"* 2>/dev/null || true
|
||||
fi
|
||||
|
||||
mkdir -p "$tmp/usr"
|
||||
if [ -d "$OVERLAY/usr" ]; then cp -r "$OVERLAY/usr/." "$tmp/usr/"; fi
|
||||
if [ -d "$OVERLAY/usr" ]; then
|
||||
cp -r "$OVERLAY/usr/." "$tmp/usr/"
|
||||
chmod +x "$tmp/usr/local/bin/"* 2>/dev/null || true
|
||||
fi
|
||||
|
||||
if [ -d "$OVERLAY/root" ]; then
|
||||
mkdir -p "$tmp/root"
|
||||
|
||||
@@ -9,12 +9,11 @@
|
||||
Hardware Audit LiveCD — DEBUG MODE
|
||||
Build: %%BUILD_INFO%%
|
||||
|
||||
Audit result: /var/log/bee-audit.json
|
||||
Audit log: /var/log/bee-audit.log
|
||||
Network log: /var/log/bee-network.log
|
||||
Logs: /var/log/bee-audit.json /var/log/bee-network.log
|
||||
|
||||
Re-run audit: /usr/local/bin/audit --output stdout | less
|
||||
Check package: which dmidecode smartctl nvme ipmitool lspci
|
||||
Re-run audit: audit --output stdout | less
|
||||
Restart net: bee-net-restart
|
||||
Check tools: which dmidecode smartctl nvme ipmitool lspci
|
||||
|
||||
SSH access: key auth (developers) or bee/eeb (password fallback)
|
||||
|
||||
|
||||
1
iso/overlay-debug/etc/profile.d/bee.sh
Normal file
1
iso/overlay-debug/etc/profile.d/bee.sh
Normal file
@@ -0,0 +1 @@
|
||||
export PATH="$PATH:/usr/local/bin"
|
||||
8
iso/overlay-debug/usr/local/bin/bee-net-restart
Normal file
8
iso/overlay-debug/usr/local/bin/bee-net-restart
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# bee-net-restart.sh — bring up all physical interfaces via DHCP (manual re-run)
|
||||
|
||||
for iface in $(ip -o link show | awk -F': ' '{print $2}' | grep -v '^lo$' | grep -vE '^(docker|virbr|veth|tun|tap|br-|bond|dummy)'); do
|
||||
echo "[$iface] bringing up..."
|
||||
ip link set "$iface" up 2>/dev/null
|
||||
udhcpc -i "$iface" -t 5 -T 3
|
||||
done
|
||||
@@ -22,10 +22,10 @@ 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: run in background (-b) so udhcpc persists and retries when cable is connected later.
|
||||
# DHCP in background: -b forks if no immediate lease, & ensures non-blocking always.
|
||||
# -t 0: unlimited retries, -T 3: 3s per attempt. No -q: stay running to renew lease.
|
||||
udhcpc -i "$iface" -b -t 0 -T 3
|
||||
log "DHCP started for $iface (background, will retry and renew lease)"
|
||||
udhcpc -i "$iface" -b -t 0 -T 3 &
|
||||
log "DHCP started for $iface (pid $!)"
|
||||
done
|
||||
|
||||
log "done"
|
||||
|
||||
Reference in New Issue
Block a user