Add network boot testing and monitoring documentation

Enhance the NETWORK-BOOT-LXC.md documentation with detailed steps for testing network boot functionality, including prerequisites, expected outcomes, and quick testing methods. Introduce a new section on monitoring network boot status on the LXC, outlining commands to check DHCP leases, dnsmasq status, and registered devices. Update the initramfs scripts to support a rescue mode for devices stuck in network-only boot, allowing users to change boot order settings. Include a new rescue script for eMMC management in the build process.
This commit is contained in:
nearxos
2026-02-21 01:50:01 +02:00
parent 2777811b32
commit 2a9731754c
9 changed files with 324 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Restore serial-specific cmdline to symlink to root (disable rescue).
# Usage: ./disable-rescue-cmdline-on-lxc.sh [LXC_HOST] [SERIAL]
set -e
LXC="${1:-root@10.20.30.153}"
SERIAL="${2:-0d1ddbda}"
ssh "$LXC" "rm -f /srv/tftpboot/$SERIAL/cmdline.txt && ln -s ../cmdline.txt /srv/tftpboot/$SERIAL/cmdline.txt && echo 'Rescue disabled; cmdline restored to symlink.'"