1 Commits
Author SHA1 Message Date
Ilker ManapandClaude Opus 5.5 a970720251 Release 0.2.1: bootstrap downloads the release's commissioning image
CI / agent (push) Successful in 3s
CI / site (push) Successful in 2s
release / release (push) Successful in 30s
CI / go (push) Successful in 37s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 20:10:43 +01:00
2 changed files with 13 additions and 4 deletions

No files matched your search

+7
View File
@@ -6,6 +6,13 @@ publish a tag that has no section here.
## [Unreleased]
## [0.2.1] - 2026-10-28
### Fixed
- `bootstrap.sh --image-url` with a release URL took the release's `SHA256SUMS` (the binaries') instead
of `commissioning-SHA256SUMS`; it now prefers the image's and says when a private repository
needs `IMAGE_TOKEN`.
## [0.2.0] - 2026-10-28
Second release: install from scratch, network model and region/rack split, external IPAM
+6 -4
View File
@@ -238,10 +238,12 @@ if [ -s $IMG/vmlinuz ] && [ -s $IMG/initrd.img ] && [ -s $IMG/filesystem.squashf
elif [ -n "$IMAGE_URL" ]; then
tmp=$(mktemp -d -p /srv/rollcall)
auth=(); [ -n "${IMAGE_TOKEN:-}" ] && auth=(-H "Authorization: token $IMAGE_TOKEN")
pre=""
if ! curl -fsSL "${auth[@]}" -o "$tmp/SHA256SUMS" "$IMAGE_URL/SHA256SUMS"; then
pre=commissioning- # a release: the image files carry a prefix
curl -fsSL "${auth[@]}" -o "$tmp/SHA256SUMS" "$IMAGE_URL/${pre}SHA256SUMS" || die "no SHA256SUMS or ${pre}SHA256SUMS at $IMAGE_URL"
# a release carries the image as commissioning-* (its plain SHA256SUMS is the binaries');
# a region's /rollcall directory has the plain names
pre=commissioning-
if ! curl -fsSL "${auth[@]}" -o "$tmp/SHA256SUMS" "$IMAGE_URL/${pre}SHA256SUMS"; then
pre=""
curl -fsSL "${auth[@]}" -o "$tmp/SHA256SUMS" "$IMAGE_URL/SHA256SUMS" || die "no commissioning-SHA256SUMS or SHA256SUMS at $IMAGE_URL${IMAGE_TOKEN:+}$( [ -z "${IMAGE_TOKEN:-}" ] && echo ' (private repository? set IMAGE_TOKEN)')"
fi
for f in vmlinuz initrd.img filesystem.squashfs; do curl -fSL --progress-bar "${auth[@]}" -o "$tmp/$f" "$IMAGE_URL/$pre$f"; done
(cd "$tmp" && sha256sum -c --quiet SHA256SUMS) || die "checksum mismatch"