Update NETWORK-BOOT-TROUBLESHOOTING.md to clarify the boot process after start4.elf, emphasizing the importance of config.txt settings for kernel and initramfs. Introduce checks for GPU logging and ensure proper configuration for UART. Modify initramfs scripts to improve DHCP lease acquisition and ensure shell output is directed to the serial console. Update ensure-tftpboot-config-kernel-initrd.sh to enforce necessary config settings and link DTB files in serial-prefix directories for better device compatibility.
25 lines
929 B
Bash
Executable File
25 lines
929 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Check whether DHCP network-boot options (66/67) are enabled on the LXC.
|
|
# Usage: ./check-dhcp-network-boot-on-lxc.sh [LXC_HOST]
|
|
# Example: ./check-dhcp-network-boot-on-lxc.sh root@10.20.30.153
|
|
|
|
LXC="${1:-root@10.20.30.153}"
|
|
PXE_CONF="/etc/dnsmasq.d/network-boot-pxe.conf"
|
|
|
|
echo "Checking DHCP network-boot status on $LXC ..."
|
|
ssh "$LXC" "bash -s" << 'REMOTE'
|
|
PXE_CONF="/etc/dnsmasq.d/network-boot-pxe.conf"
|
|
if [ -f "$PXE_CONF" ]; then
|
|
echo "Status: ENABLED (option 66/67 are advertised - devices will try network boot)"
|
|
echo "Content of $PXE_CONF:"
|
|
cat "$PXE_CONF"
|
|
else
|
|
echo "Status: DISABLED (no PXE options - devices get DHCP only and boot from local storage)"
|
|
fi
|
|
# Also show toggle script status if present
|
|
if [ -x /opt/cm4-provisioning/toggle-network-boot-dhcp.sh ]; then
|
|
echo ""
|
|
echo "Toggle script output: $(/opt/cm4-provisioning/toggle-network-boot-dhcp.sh status 2>/dev/null)"
|
|
fi
|
|
REMOTE
|