builder/GNOME-PROBE.md
Archipelago beb96f4bd2 Desktops configure kmscon VTs in the finalizer (D-109 regression)
Published GNOME/KDE images pointed autovt@.service at getty@.service and carried no
/etc/kmscon/kmscon.conf, so logind-opened VTs (tty2+) ran getty: kmscon never served
a desktop VT although D-109 keeps it there.

The kmscon setup sat in a gnome-probe guard inside the Core-tree block of
build-iso.sh. That block only runs for the core profile, so the guard could never
be true for a Purpose build. Move the setup into gnome-finalize.sh and
kde-finalize.sh (which do run for Purpose builds), assert mesa, kmscon.conf and the
autovt alias, and drop the alias that pinned tty1 to getty.

Also remove the remaining dead gnome-probe branches from the Core-tree block and
the ARCHIPELAGO_TOOLBOX_PACKAGE probe injection that could never be used: the
layered path resolves Toolbx from the frozen Core package universe.

A unit test now asserts both desktop finalizers configure kmscon and that the Core
tree does not.
2026-11-14 02:07:01 +03:00

2.9 KiB

Private GNOME integration probe

archipelago build gnome-probe WORKDIR BOOTSTRAP.tar.zst extends the existing monolithic Core experiment solely to test target GNOME adapters. It reads the compiled, structurally validated purposes/proposals/gnome.yaml package requirements and emits archipelago-gnome-probe.iso. It is not an independent Layer v1 producer, accepted GNOME release or complete package-action implementation.

Implemented probe inputs:

  • native GNOME/GDM, NetworkManager/resolved, PipeWire/WirePlumber and explicit packages;
  • GNOME Initial Setup vendor defaults; terminal firstboot is suppressed on this profile;
  • Rust observation of authenticated GDM sessions, AccountsService identity/home/wheel checks and deployment-local onboarding completion; no parallel account creation;
  • first-install stable Flatpak defaults, per-app completion records, retries and preservation of subsequently removed apps; normal Flatpak updates remain independent;
  • Flathub repository file verified against recorded SHA-256;
  • shared Desktop Arch Toolbx OCI digest/default; native subordinate-ID handling must still be proven on target;
  • en_US/ru_RU UTF-8 locales and initial desktop service defaults.

Probe limitation: stock Arch GNOME Software has no PackageKit plugin. The stock PackageKit ALPM service is masked. The probe also masks 90-packagekit-refresh.hook, whose sole action is a D-Bus StateHasChanged posttrans notification to that disabled daemon. It cannot run in the build chroot; the future Archipelago backend needs its own reviewed integration. The installed integration-status file states that OS GUI updates are pending. Neither the probe command nor passing its session checks allows publication as a complete Desktop Purpose. The real update backend, Software adaptation, full package-action coverage, Flatpak/Toolbx graphical/runtime acceptance and public gates are required before portal/registry release.

Flatpak apps in this probe are seeded online after onboarding, with independent retries. They are not preloaded into the ISO and must not be described as available offline. A locked sideload seed and offline installation verification remain work. Late Core→GNOME transitions and preservation of administrator network/DM choices require a separate transition adapter; the current finalize script is clean-install only.

The patched Toolbx trial (ARCHIPELAGO_TOOLBOX_PACKAGE, toolbox-0.3-2.1-x86_64.pkg.tar.zst) applied only to the monolithic gnome-probe path. That injection lived inside the Core-only branch, so the layered Purpose build never used it and the variable was silently ignored; it has been removed rather than left as a no-op. The layered path resolves stock extra/toolbox from the frozen Core package universe. The patched package can only re-enter through a new common snapshot (see LAYERED-GNOME.md), and a custom package override API remains unimplemented and is not a public trust policy.