From 00df467a41010d701cbbc21acaeac8dd8ab76fa7 Mon Sep 17 00:00:00 2001 From: Phoebus Date: Tue, 6 Oct 2026 01:52:56 -0700 Subject: [PATCH] fix(live): trim Debian installer files from fresh ISO --- docs/CHANGELOG.md | 9 +++++++++ docs/HANDOFF.md | 12 ++++++++++++ docs/STATUS.md | 2 +- docs/VM-BOOT-VERIFICATION.md | 15 +++++++++++++++ installer/live/build.sh | 8 ++++++++ 5 files changed, 45 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 263d112..d508e83 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -5,6 +5,15 @@ this file is the curated, human-readable summary. ## Unreleased — Fast defaults with user-controlled source builds +- **Fresh live ISO and VM cleanup (2026-10-06).** Removed 33 disposable qcow2 + images, freeing about 80 GiB. Rebuilt the live root filesystem and static + binaries so the ISO includes the latest package list, desktop, and `sys` + changes. The ISO assembly now drops the unused Debian installer and package + pools and its obsolete GRUB menu entries. The new 1.4 GiB ISO has SHA-256 + `5886d8f54c45ce330175edeaf7812fe6815371aac2f8ffa7b4477e4f013c3430`; + an ISO-only UEFI VM boot reached `graphical.target` and the serial login. + A fresh install from this ISO remains unverified. + - **Cross-lane install comparison (2026-10-03).** A plain install request now searches the configured Portage, Flatpak, Snap, AppImage, Nix and staged-ebuild catalogues before the connected model recommends a source. A multiword name diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md index 72e5b88..6ca2e7e 100644 --- a/docs/HANDOFF.md +++ b/docs/HANDOFF.md @@ -3,6 +3,18 @@ Rolling note between work sessions. **Update this file before you finish**, then commit it. It should be short and current; use `git log` for detail. +- **Fresh ISO and VM cleanup (2026-10-06):** Cleared all 33 disposable qcow2 + images from `/var/tmp/phoebus-vm/disks` (about 80 GiB freed), retaining the + small test evidence files. `make doctor` and `make check` pass. The live + rootfs was rebuilt rather than reused because `live-packages.list` changed; + current static `sys` and installer hashes match binaries extracted from the + new ISO. ISO SHA-256 is + `5886d8f54c45ce330175edeaf7812fe6815371aac2f8ffa7b4477e4f013c3430` + at `installer/live/phoebus-installer-amd64.iso`. A no-disk QEMU UEFI boot + reached `graphical.target` and `phoebus-live login:`. The former fully tested + candidate was retained as `phoebus-installer-amd64-20261001-verified.iso`. + Fresh installation and the independent CI release gate remain outstanding. + - **Cross-lane install comparison (2026-10-03):** A plain install now performs read-only searches across the configured package catalogues before asking the model to recommend a candidate. The Assistant shows per-lane results, diff --git a/docs/STATUS.md b/docs/STATUS.md index 8de0b2f..56a1825 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -526,7 +526,7 @@ A fresh install with these defaults is not yet verified. | Mango is the canonical desktop | yes | yes | fresh candidate installed graphical seat 30/30: Mango + DMS, first-login Phoebus welcome, terminal, spotlight, lock/unlock/logout | no | | greetd login (Mango + DarkMaterial) | yes | yes | authenticated seat0 + DRM card0 graphical login and logout, `gui-desktop-20261001T084157Z-ccefa3e1` | no | | Slate tuigreet login palette and greeting | yes | yes (generated greetd TOML, 16-color VT palette, installed drop-in, package, inset status bar and soft-gray keycaps) | existing encrypted VM: authenticated in-guest update and greetd restart showed inset `ESC`, gray keycaps/action text, slate background and Phoebus greeting (`/var/tmp/phoebus-vm/greeter-slate-inset-gray-20261003.png`); reference/VM pixels match `#2e3440` background and `#d8dee9` UI gray; fresh-install reboot pending | no | -| Live desktop ISO (Mango + DMS) | yes | guards tested | candidate ISO SHA `b14f37e1…c7b986b5281`: UEFI GUI 32/32, real OpenCode 18/18; embedded static binaries match | no | +| Live desktop ISO (Mango + DMS) | yes | guards tested | current ISO SHA `5886d8f5…4477e4f013c3430`: full live rootfs rebuild, matching embedded static binaries, BIOS/UEFI metadata and ISO-only UEFI boot to `graphical.target` and serial login; fresh install/GUI gates not rerun. Previous candidate SHA `b14f37e1…c7b986b5281` passed UEFI GUI 32/32 and real OpenCode 18/18 | no | | Live welcome autostart + duplicate prevention | yes | guards tested | live graphical VM | no | | Welcome primary action keyboard-focus | yes | guards tested | live graphical VM | no | | VM harness disk safety + structured results | yes | yes (22 tests, including backing-chain and redaction cases) | n/a | n/a | diff --git a/docs/VM-BOOT-VERIFICATION.md b/docs/VM-BOOT-VERIFICATION.md index a477e57..ac20c1d 100644 --- a/docs/VM-BOOT-VERIFICATION.md +++ b/docs/VM-BOOT-VERIFICATION.md @@ -3,6 +3,21 @@ This records the first successful end-to-end install and boot of Phoebus OS against a disposable qcow2 disk. No physical disk was ever touched. +## 2026-10-06 Fresh ISO UEFI boot smoke test + +After removing 33 disposable qcow2 images, the live rootfs was rebuilt with +the current package list, desktop assets, static installer and `sys`. The +resulting ISO at `installer/live/phoebus-installer-amd64.iso` is 1,495,138,304 +bytes, SHA-256 +`5886d8f54c45ce330175edeaf7812fe6815371aac2f8ffa7b4477e4f013c3430`. +The embedded binary hashes matched the current static release builds. xorriso +reported BIOS and UEFI boot entries. A QEMU UEFI boot from the virtual DVD, +with no target disk attached, reached `graphical.target` and the +`phoebus-live login:` serial prompt. Unused Debian installer pools and boot +menu entries were removed from the image; an earlier untrimmed 2.0 GiB attempt +failed firmware loading, while the trimmed ISO booted. This is a live boot +smoke test, not a fresh Phoebus installation or graphical acceptance run. + ## 2026-10-03 Installed greeter spacing and gray color The existing encrypted playground was updated after guest authentication with diff --git a/installer/live/build.sh b/installer/live/build.sh index 6741f0d..cae3371 100755 --- a/installer/live/build.sh +++ b/installer/live/build.sh @@ -535,6 +535,13 @@ t = t.replace( 'nosplash vga=788', 'nosplash vga=788 nomodeset phoebus.nvidia=off ' 'modprobe.blacklist=nvidia,nvidia_modeset,nvidia_uvm,nvidia_drm') +# The Debian installer is not Phoebus's installer. Its menu entries would +# become dead links after dropping the unused Debian package pools below. +start = t.find('# Installer (if any)\n') +end = t.find("submenu 'Utilities...'", start) +if start < 0 or end < 0: + raise SystemExit('base GRUB installer menu layout changed') +t = t[:start] + t[end:] open(p, "w").write(t) PY cat > "$bootcfg/theme.cfg" <<'EOF' @@ -594,6 +601,7 @@ done < <(xorriso -indev "$base" -find /live 2>/dev/null \ | tr -d "'" | grep -E '^/live/(vmlinuz|initrd)' | sort -u) xorriso -indev "$base" -outdev "$out" \ + -rm_r /pool /pool-udeb /install -- \ -map "$squashfs" /live/filesystem.squashfs \ -map "$work/filesystem.packages" /live/filesystem.packages \ "${kmap[@]}" \