mirror of
https://github.com/semi-system/broom.git
synced 2026-12-06 23:25:32 +09:00
Secure Boot (test toggle) - Network page: "Secure Boot clients" (config ipxe_signed, off by default). On: DHCP hands out the official iPXE v2.0.0 Secure Boot build (Microsoft-signed iPXE shim -> iPXE-CA-signed snponly.efi), embedded and served over TFTP; mgmt/ipxe/fetch-signed.sh fetches the pinned, sha256-checked release into mgmt/ipxe/signed/. Off: broom's own snponly.efi, unchanged. - /boot/start prepends `shim` with Ubuntu's Microsoft-signed shim (tftp/shim/shimx64.efi, refreshed from shim-signed at startup and on publish) so the Canonical-signed stage kernel loads under Secure Boot (server kernel must be >= 6.x; 5.15 has a .reloc shim rejects). - Signed-iPXE menu: Host / IP / MAC (one per line) + hint above the images. Windows golden - broom-prep-win: VBS + Memory integrity (HVCI) on; inbound ICMP echo allowed (clients showed OFF); reserved storage disabled (0x800F0975 failed sysprep); keeps C:\broom\base-hook.ps1. - broom-done BASE MODE: after writing base.ok it shows a popup instead of rebooting; the technician sets up apps (e.g. FACEIT AC, whose first run on a VHD-booted client needs one restart) and restarts, which commits base. Steps shown on the console and logged to broom\done.log. Optional golden hook C:\broom\base-hook.ps1 runs before base.ok. - Publish keeps the boot partitions it trims (images/<name>/orig) and reports a clear error when ntfs-3g falls back to read-only (golden not shut down cleanly). Images - Export: an image or a version -> VMware VM (.vmx + .vmdk, resumable download). - Versions: "-> New image" turns a version into a new image (manifest copied, chunks shared); "vs current golden" compares each version with image.img as served now (cached hash list). Stage - Delta skipped when more than half the golden changed: whole-file download, sha256 computed while downloading (no full re-read); chunks already in place are not re-downloaded after a power cut. - `df -Pk` (busybox wrapped long device names -> wrong free space); wget shows only a progress bar. Misc - System page loads boot countdown + zram reserve from the DB (GET /api/config). - Tests: shell syntax checks wrap the script in a never-called function — busybox 1.30 ignores `sh -n -c` and ran the stage script during cargo test. - README / NOTICE updated; version 0.5.0.