New files:
- scripts/export-preseed.sh: Export config from running system
- image/preseed-apply.sh: Apply preseed on firstboot
- image/secubox-preseed.service: Systemd service for preseed
Features:
- Export SecuBox config (/etc/secubox/)
- Export network config (netplan, WireGuard)
- Export user accounts and SSH keys
- Export service configs (nginx, HAProxy, CrowdSec)
- Export SSL certificates
- Apply on firstboot with systemd service
Usage:
# On running VM, export config:
./scripts/export-preseed.sh my-config.tar.gz
# Build live USB with preseed:
sudo bash image/build-live-usb.sh --preseed my-config.tar.gz
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>