sector-f-linux

Sector F Linux
git clone https://git.sectorflabs.com/sector-f-linux.git
Log | Files | Refs | README | LICENSE

commit c217cb31f3933ef7d2855afed78855c53984bb4c
parent b30cfcb161effe482b1ce7001009a6f547ad2d35
Author: Divan Visagie <me@divanv.com>
Date:   Sun, 29 Nov 2026 10:24:13 +0100

iso: named sector-f-linux-<date>-<first 8 of the payload's digest>.iso, so a file says which published image it carries

Diffstat:
Mlinux/live/build.sh | 10++++++++--
Mlinux/live/try.sh | 4++--
2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/linux/live/build.sh b/linux/live/build.sh @@ -65,6 +65,12 @@ docker save sectorf-live-installer | "$VM" ssh 'podman load -q >/dev/null && pod # manifest as published. So publish first (make build, make publish, make iso). say "pulling the payload $PAYLOAD into the VM" "$VM" ssh "podman pull -q $PAYLOAD >/dev/null && df -h /var/builder | tail -1" +# The ISO is named after the date and the first 8 digits of the payload's digest, so a file says +# which published image it carries. +digest=$("$VM" ssh "podman image inspect $PAYLOAD --format '{{.Digest}}'") +digest=${digest#sha256:} +[[ ${#digest} -ge 8 ]] || { echo "error: no digest for $PAYLOAD" >&2; exit 1; } +NAME="sector-f-linux-$(date -u +%Y%m%d)-${digest:0:8}.iso" say "building the ISO (in the VM)" "$VM" ssh " @@ -82,5 +88,5 @@ say "copying the ISO out" mkdir -p "$OUT" iso=$("$VM" ssh "find /var/builder/out -name '*.iso' | head -1") [[ -n "$iso" ]] || { echo "error: no ISO was made" >&2; exit 1; } -"$VM" ssh "cat '$iso'" > "$OUT/sectorf-live.iso" -ls -lh "$OUT/sectorf-live.iso" +"$VM" ssh "cat '$iso'" > "$OUT/$NAME" +ls -lh "$OUT/$NAME" diff --git a/linux/live/try.sh b/linux/live/try.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Boots the live ISO (out/iso/sectorf-live.iso) in QEMU with UEFI and two blank 16 GB drives, to try +# Boots the live ISO (the newest out/iso/sector-f-linux-*.iso) in QEMU with UEFI and two blank 16 GB drives, to try # the installer (ADR-0014): the chosen one should get the system, the other stay untouched. Its own # VNC display (localhost:5902) and monitor, so the test VM (vm/) can run beside it. # @@ -14,7 +14,7 @@ set -euo pipefail ROOT=$(cd "$(dirname "$0")/.." && pwd) OUT="$ROOT/out/iso" -ISO="$OUT/sectorf-live.iso" +ISO=$(ls -t "$OUT"/sector-f-linux-*.iso 2>/dev/null | head -1 || true) # the newest build MON="$OUT/monitor.sock" PID="$OUT/qemu.pid" VARS="$OUT/OVMF_VARS.fd"