fix: PXE boot Content-Length, firewall zones, UEFI improvements #1

Merged
michal merged 1 commits from fix/pxe-boot-issues into main 2026-03-17 01:03:37 +00:00
Owner

Summary

  • Fix HTTP Content-Length bug: used Python character count instead of byte count, causing iPXE I/O errors on scripts containing Unicode (em dash)
  • Fix firewall cleanup to use zone-aware commands matching the interface zone
  • Add UEFI HTTP Boot support, pxe-service directives, tftp-no-blocksize
  • Switch to local iPXE packages, add custom UEFI PXE loader stub
  • Enable HTTP request logging for boot debugging

Test plan

  • PXE boot UEFI x86_64 machine (MinisForum SER9)
  • Discovery mode: hardware inventory collected and POST'd to bastion
  • Verified iPXE chain to /dispatch works with Content-Length fix

🤖 Generated with Claude Code

## Summary - Fix HTTP Content-Length bug: used Python character count instead of byte count, causing iPXE I/O errors on scripts containing Unicode (em dash) - Fix firewall cleanup to use zone-aware commands matching the interface zone - Add UEFI HTTP Boot support, pxe-service directives, tftp-no-blocksize - Switch to local iPXE packages, add custom UEFI PXE loader stub - Enable HTTP request logging for boot debugging ## Test plan - [x] PXE boot UEFI x86_64 machine (MinisForum SER9) - [x] Discovery mode: hardware inventory collected and POST'd to bastion - [x] Verified iPXE chain to /dispatch works with Content-Length fix 🤖 Generated with [Claude Code](https://claude.com/claude-code)
michal added 1 commit 2026-03-17 01:02:12 +00:00
- Fix Content-Length using byte count instead of character count
  (em dash in iPXE scripts caused mismatch, breaking iPXE chain)
- Use firewall zone-aware commands matching interface zone
- Add UEFI HTTP Boot support (arch 16/20) alongside PXE TFTP
- Add pxe-service directives for proper proxy DHCP responses
- Use bind-dynamic instead of bind-interfaces for bridge compat
- Add tftp-no-blocksize for UEFI firmware compatibility
- Use local ipxe packages instead of downloading from internet
- Add custom UEFI PXE loader stub (pxeloader.c) for chainloading
- Enable HTTP request logging for debugging boot issues

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
michal merged commit 014e8a6e72 into main 2026-03-17 01:03:37 +00:00
michal deleted branch fix/pxe-boot-issues 2026-03-17 01:03:38 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: michal/lab#1