sector-f-linux

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

0015-nothing-is-published-until-publish.md (2359B)


      1 # 0015. Nothing is published until `make publish`; one ISO
      2 
      3 Date: 2026-11-27
      4 
      5 ## Status
      6 
      7 Accepted (the user's direction).
      8 
      9 ## Context
     10 
     11 `make build` pushed a test image, `sector-f-linux-dev`, to the registry, because the test VM and the
     12 ISO's build VM pulled their image from there, and the test image has a login that the real one must
     13 not. That left two images in the registry, and two ISOs: a dev one (SSH for the rig, payload the dev
     14 image) and a release one that needed `make publish` first. Nobody wants to ship the dev ISO, and
     15 nothing needs to be published to test locally.
     16 
     17 ## Decision
     18 
     19 - **`make build` is local.** It builds the real image (`sector-f-linux:build`, the Containerfile's
     20   `system` stage) and the VM's image (`sector-f-linux-dev:build`, `system` plus the test login) in
     21   Docker on this machine. Nothing is pushed.
     22 - **`make publish` is the only thing that pushes,** and it pushes the image `make build` made, not a
     23   rebuild, so what was tried is what ships.
     24 - **`make disk` takes the image from this machine's Docker** (`docker save`, loaded
     25   into the VM's podman), not from the registry.
     26 - **`make iso` comes after `make publish`, and carries the published image,** pulled from the
     27   registry. Sending it from Docker (`docker save`, `podman load`) rewrites the manifest, so the
     28   payload's digest differs from the published one (seen: `9f12…` against `4d44…`, the same build), and
     29   a machine installed from the ISO would be told by the updater (ADR-0016) that an update was
     30   waiting for the build it already runs. A pull keeps the manifest as published.
     31 - **There is one ISO.** It carries the real image, has no test user and no SSH, and installed
     32   machines follow `ghcr.io/sector-f-labs/sector-f-linux:latest`. `make iso DEBUG=1` adds the rig's
     33   SSH key, for driving the ISO in QEMU; that is an option of a local test, not a second product.
     34 - The VM follows the published image, so `make upgrade` is tried after a publish.
     35 
     36 ## Consequences
     37 
     38 - The registry holds one repository, `sector-f-linux`. The old `sector-f-linux-dev` there can be deleted.
     39 - Trying an update in the VM needs a real publish first (before, it needed a dev push).
     40 - Amends [ADR-0009](0009-seflos-a-fedora-bootc-image-on-btrfs.md) (the dev stage and its registry) and
     41   [ADR-0014](0014-the-live-disc-boots-straight-into-the-installer.md) (the payload).