Commit Graph

1 Commits

Author SHA1 Message Date
d703393fb6 Add preseed system for configuration persistence
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>
2026-03-24 19:41:08 +01:00