commit 89d0b4e3fdb4b9e60de377f8a1491b34a88391fe
parent 997f4a08cfd72f552197415445f7e2c3a86b40b3
Author: Divan Visagie <me@divanv.com>
Date: Sat, 21 Nov 2026 11:04:42 +0100
ADR-0014: step 3 done, the whole path tried on the real image
Diffstat:
1 file changed, 35 insertions(+), 1 deletion(-)
diff --git a/docs/adr/0014-the-live-disc-boots-straight-into-the-installer.md b/docs/adr/0014-the-live-disc-boots-straight-into-the-installer.md
@@ -4,7 +4,7 @@ Date: 2026-11-21
## Status
-Proposed (the direction is the user's; the details are mine). Amends
+Proposed (the direction is the user's; the details are mine). Steps 1 to 3 are built and tried. Amends
[ADR-0010](0010-a-live-installer-built-from-the-image.md) and
[ADR-0011](0011-the-first-boot-is-the-installer.md): the live disc has no "try" mode and no desktop,
and boots into the installer and nothing else. Nothing here is built; "to verify" marks what has
@@ -138,6 +138,40 @@ the first boot of the installed drive was not logged in to), several drives and
live medium, Secure Boot, a power cut half way, and the progress reporting for the app (the command
prints `STEP n/total` lines, but `bootc install` itself gives no percentage that was looked at).
+## Step 3 done (2026-11-21): the installer app, and the whole path on the real image
+
+`installer/` (`patina-installer`, a Patina egui app in the greeter's look) is the live disc's only
+screen: choose the drive, confirm it by name, the flask and a progress bar while it installs, then
+done or failed. The drive list comes from `lsblk`; the disc's own drive, mounted and read-only drives
+and ones under 12 GB are shown but cannot be chosen, with the reason, and `patina-install` checks
+all of it again. The app is unprivileged and runs `pkexec patina-install`. The flask is drawn from
+Rust as an SVG per frame in the skin's colours (24 fps, 72 frames in a 3 s loop).
+
+Tried by the user in QEMU, from the ISO built on the published `sectorf-linux:latest` (no test
+account, no SSH): picked a blank drive, installed, restarted, and the first-run setup made the
+account. Before that, on the dev image, the install ran end to end and the machine booted.
+
+Found on the way:
+- **`pkexec` refuses a caller whose `SHELL` is not in `/etc/shells`,** and greetd's user has `nologin`:
+ "The value for the SHELL variable was not found in the /etc/shells file". The app sets
+ `SHELL=/bin/sh` for the call. Earlier tests ran `pkexec` from root's shell and missed it.
+- **The progress bar is the bytes written to the drive** (the kernel's `/sys/block/<disk>/stat`)
+ over the image's size (`patina-install` prints it as `SIZE`), held under 100% until the command
+ ends. `bootc install` prints no percentage. The bar sits at 0% for the first minute or so, while
+ bootc unpacks into RAM, then moves; seen at 51% mid-install. An estimate, not a promise.
+- **Drawing the flask at the screen's rate** took 127% of a core (and `cage` 54%) on a 2-core VM with
+ software rendering, starving the install; it is drawn at 24 fps now. On real hardware it is not
+ expected to matter.
+- **The test rig's speed is the host's disk,** not the VM: its disks are on a ZFS dataset with
+ `dedup=on` and 128K records on a SATA SSD, 93% busy at ~23 MB/s. To tune or move to the NVMe later.
+ (The pool, `tank`, also reports DEGRADED on its only device.)
+- **The image names:** the ISO's payload and the installed machine's update target are both
+ `sectorf-linux:latest` for a release; the dev image keeps its own name.
+
+Not yet checked, as before: the SELinux labelling of the installed system, several drives and a USB
+stick as the live medium, Secure Boot, a power cut half way, real hardware, and GRUB's countdown.
+The 1.53 GB layer still sets the RAM the install needs.
+
## Consequences
- The live disc is one job, and the installer is the only new app. The greeter does not get a live mode.