Full rename to match the openpxe.com brand. The product now reads as a
polished open-source project rather than a personal-tool nickname:
the anvil/forge metaphor is gone, replaced with the rainbow-horizon
brand mark from the marketing site.
## Naming changes
**PXEForge → OpenPXE** everywhere it's user-visible or developer-
facing:
- All 8 crate package names (`pxeforge-*` → `openpxe-*`).
- The bin crate dir + binary (`crates/pxeforge` → `crates/openpxe`,
`bin = "openpxe"`).
- Env vars: `PXEFORGE_*` → `OPENPXE_*` (no compat shim — pre-beta).
- Tracing targets: `pxeforge::*` → `openpxe::*`.
- Prometheus metrics: `pxeforge_*` → `openpxe_*` (pre-beta; nobody
has dashboards on these yet).
- Container image: `gitea.milesward.dev/mward4/openpxe:0.3.0`.
- All in-tree paths: `/var/lib/openpxe/{isos,work,smb}`,
`/usr/share/openpxe/ipxe`, `/etc/openpxe/...`.
- Unraid template renamed `pxeforge.xml` → `openpxe.xml`.
- README, NEXT_PHASE.md, architecture.md, comments, and the WebUI
brand string.
**Gated Deployment → Queued Deployment** as the user-facing concept:
- `Settings::TimeoutAction::GatedDeployment` →
`QueuedDeployment` (with `#[serde(alias = "gated_deployment")]`
so v0.2.0 settings.json files keep deserializing).
- Rust types: `Gate` → `QueueEntry`, `GateQueue` → `DeploymentQueue`,
`GateInner` → `QueueEntryInner`.
- File: `crates/core/src/gate.rs` → `crates/core/src/queue.rs`.
- HTTP routes: `/api/gate/*` → `/api/queue/*`. The JSON list key
flipped from `"gates"` to `"entries"` to match.
- iPXE shortcut: `/boot/_gate.ipxe` → `/boot/_queue.ipxe`. The
top-level menu's item id is now `queue` instead of `gate`.
- WebUI sidebar tab: "Forge Gate" → "Queue".
- Field on `AppState`: `gates` → `queue`.
## Brand assets
The anvil + forging-sparks logos are dropped:
- `logo.svg` is now a 24×24 medallion filled with the
`rainbow-horizon` gradient from openpxe.com (sliding hue rotation
via SMIL on the gradient stops, no JS needed).
- `anvil-forge.svg` renamed to `loader.svg` and rebuilt as a 64×64
louder version of the same disc — used for page-load transitions
and the imaging-progress widget. Adds a subtle scale pulse and a
white inner-glow so it has dimensionality on either theme.
## CSS rename
- `.forge-progress` → `.queue-progress`
- `.forge-progress .anvil` → `.queue-progress .mark`
- `@keyframes forge-sheen` → `queue-sheen`
- `.loader .anvil` → `.loader .mark`
- "Heating the forge…" loader text → "Loading…"
The rest of the layout is untouched. Light/dark theme tokens and the
sidebar/topbar structure carry over from v0.2.0 unchanged — the
brief was "keeping the UI similar."
## Validation
- `cargo build --workspace` — clean.
- `cargo clippy --workspace --all-targets` — no warnings.
- `cargo test --workspace` — **66 tests passing**, same as v0.2.0.
- Local smoke run against the rebuilt release binary verifies:
- `/boot.ipxe` emits `Queued Deployment` + `item queue` + chains
`/boot/_queue.ipxe`
- `/api/queue` returns `{count, entries}`
- `/metrics` emits `openpxe_queue_count` (renamed)
- `/assets/logo.svg` and `/assets/loader.svg` serve the new
rainbow brand SVGs
- `/api/status` reports version `0.3.0`
## Migration notes for operators on v0.2.0
- Container image path changed: pull
`gitea.milesward.dev/mward4/openpxe:0.3.0` (not `pxeforge:`).
- Bind mounts: `/var/lib/openpxe/{isos,work,smb}` (not `pxeforge`).
Move the host path or update the template.
- Env vars: replace `PXEFORGE_*` with `OPENPXE_*`. The Unraid
template at `deploy/unraid/openpxe.xml` is already updated.
- `settings.json` carries over transparently — the
`gated_deployment` value is accepted as an alias.
- HTTP API: any external scripts that hit `/api/gate/*` need to
switch to `/api/queue/*`. The JSON envelope key is `entries`
instead of `gates`.
84 lines
3.0 KiB
Bash
Executable File
84 lines
3.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Fetch prebuilt iPXE binaries from the official distribution at
|
|
# https://boot.ipxe.org/ and place them under assets/ipxe/ with the filenames
|
|
# OpenPXE's arch mapping expects.
|
|
#
|
|
# Why not build from source?
|
|
# - Building iPXE requires the toolchain + several megabytes of source, and
|
|
# the official binaries are rebuilt nightly from upstream master with the
|
|
# standard driver set. For Phase 1 we use those. A later iteration can
|
|
# add an optional Dockerfile build stage that compiles iPXE with custom
|
|
# driver or scripting patches if needed.
|
|
#
|
|
# Safety:
|
|
# - Upstream (boot.ipxe.org) serves over HTTPS.
|
|
# - We do NOT pin by sha256 because upstream is a nightly rolling build;
|
|
# pinning would mean stale binaries with known CVEs. If you need
|
|
# deterministic builds, mirror these to your own artifact store and
|
|
# point the Dockerfile there instead.
|
|
# - Each binary is boot firmware the client executes. Only fetch from
|
|
# upstream or a mirror you trust; never from random sources.
|
|
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
DEST="$ROOT/assets/ipxe"
|
|
mkdir -p "$DEST"
|
|
|
|
# Map: local filename <- upstream path on boot.ipxe.org
|
|
# Upstream uses arch-scoped subdirectories; we flatten to the names our
|
|
# ClientArch::ipxe_bootfile() expects.
|
|
declare -a MAP=(
|
|
"undionly.kpxe=undionly.kpxe"
|
|
"snponly.efi=x86_64-efi/snponly.efi"
|
|
"snponly-i386.efi=i386-efi/snponly.efi"
|
|
"snponly-arm64.efi=arm64-efi/snponly.efi"
|
|
"ipxe.efi=x86_64-efi/ipxe.efi" # fallback with bundled drivers
|
|
)
|
|
|
|
BASE="https://boot.ipxe.org"
|
|
|
|
# wimboot lives in its own GitHub release. Fetching it enables the Windows
|
|
# toggle in the WebUI. Safe to leave disabled — the binary is vendor-signed
|
|
# for iPXE's own use; we never modify it and it only runs inside iPXE's
|
|
# memory space, never the target OS.
|
|
WIMBOOT_URL="https://github.com/ipxe/wimboot/releases/latest/download/wimboot"
|
|
|
|
fetched=0
|
|
for entry in "${MAP[@]}"; do
|
|
local_name="${entry%%=*}"
|
|
upstream_name="${entry#*=}"
|
|
url="$BASE/$upstream_name"
|
|
out="$DEST/$local_name"
|
|
echo ">> fetching $url -> $out"
|
|
if ! curl --fail --silent --show-error --location --output "$out.tmp" "$url"; then
|
|
echo " skip: upstream not available ($url)"
|
|
rm -f "$out.tmp"
|
|
continue
|
|
fi
|
|
mv "$out.tmp" "$out"
|
|
fetched=$((fetched+1))
|
|
done
|
|
|
|
if [ "$fetched" -eq 0 ]; then
|
|
echo
|
|
echo "ERROR: zero iPXE binaries were downloaded. The container would build"
|
|
echo " but no PXE client could boot. Check your network egress to"
|
|
echo " $BASE and re-run this script. Aborting."
|
|
exit 2
|
|
fi
|
|
|
|
echo
|
|
echo ">> fetching wimboot (optional, enables Windows ISO support)"
|
|
if curl --fail --silent --show-error --location --output "$DEST/wimboot.tmp" "$WIMBOOT_URL"; then
|
|
mv "$DEST/wimboot.tmp" "$DEST/wimboot"
|
|
echo " wimboot installed"
|
|
else
|
|
echo " skip: wimboot unreachable — Windows toggle will stay disabled in the WebUI"
|
|
rm -f "$DEST/wimboot.tmp"
|
|
fi
|
|
|
|
echo
|
|
echo "iPXE assets now in $DEST:"
|
|
ls -lh "$DEST" | tail -n +2
|