Enhance the dashboard API with new endpoints for managing DHCP network boot options, allowing devices to enable or disable network boot via POST requests. Update the device action handling to include a 'reboot' action, specifically for network devices. Modify the home.html template to display the current state of network boot and provide a button for disabling it. Update provisioning scripts to disable network boot after deployment or backup completion, ensuring devices boot from eMMC on the next startup. Improve user feedback and error handling throughout the changes.
LXC config (network boot: eth1 = LAN, eth0 = WAN)
Config files for the provisioning LXC when using eth1 as a provisioning LAN (DHCP + TFTP for network boot, NAT for internet).
| File | Purpose |
|---|---|
| dnsmasq-network-boot.conf | dnsmasq: DHCP + TFTP on eth1 only. Copied to /etc/dnsmasq.d/ by scripts/setup-network-boot-on-lxc.sh. |
| nft-nat-lan.conf | nftables NAT so 10.20.50.0/24 uses eth0 for internet. Applied by the setup script to /etc/nftables.d/nat-lan.conf. |
Setup is done by running (from your machine):
./emmc-provisioning/scripts/setup-network-boot-on-lxc.sh root@<LXC-IP>
See ../docs/NETWORK-BOOT-LXC.md for full documentation.