builder/LAYERED-KDE.md

5.8 KiB

Private layered KDE adapter

D-091 (2026-11-07) authorizes KDE publication after user-confirmed hardware readiness. D-110 (2026-11-13) replaces SDDM with Plasma Login Manager, KDE's SDDM fork: the greeter is a Plasma session, so there are no SDDM themes or CompositorCommand knobs. Keyboard layouts and the virtual keyboard reach the greeter through the system-wide /etc/xdg/kxkbrc (RU+EN) and /etc/xdg/plasmakeyboardrc. Finalization writes them into the composed tree as machine defaults next to the NetworkManager, sudoers and plymouth defaults; they are not package payload, because a package shipping /etc files used to break the Purpose composition (see LAYERED-GNOME.md, now merged into usr/etc). Finalization checks the package, the unit, the absence of SDDM and both files.

The KDE package selection carries the Plasma Login Manager KCM (kcm_plasmalogin, shipped in plasma-login-manager) for login-screen configuration in System Settings. sddm-kcm is no longer installed. Finalization checks the package and unit presence in the composed tree. kinfocenter is included as well for the About this System page in System Settings; package presence is checked in finalization and installed-VM acceptance.

Hardware follow-up found a precedence defect in published run 20261107T101235Z (historical, SDDM era; superseded by D-110): 20-archipelago-theme.conf was loaded before the SDDM package's default.conf, whose [Theme] Current= reset the selection. Both files were confirmed in image a747ff537a991ce20a1735506576e554e648bed09a2465c50fccc73fbc4eac80. The corrected zz- name sorts after that file; finalization now checks the merged vendor and /etc configuration instead of grepping only our fragment. sddm --example-config wipes configuration to compiled defaults and is unsuitable for this check. That defect and its image are superseded by D-110, which removed SDDM from the Purpose entirely; the corrected path is published as of run 20261113T200705Z and still awaits the user's hardware verification.

Console handling follows D-109: the Plasma greeter owns tty1, and finalization points the autovt@.service alias at kmsconvt@.service and installs /etc/kmscon/kmscon.conf, so logind-opened VTs (tty2+) run kmscon. It is asserted in the finalizer (with a mesa presence check) because the Core-tree block in build-iso.sh does not run for Purpose builds.

archipelago build iso --purpose kde WORK BOOTSTRAP renders the same private Core-reuse/composition path as GNOME, inserting KDE assets before finalization. It requires ARCHIPELAGO_CORE_BUILD, a KDE installation-media Flatpak export, and ARCHIPELAGO_DISCOVER_PLUGIN. Core is not rebuilt in this path.

The rendered path tokens are changed before injecting policies or helper source; application IDs and shared helper contents are never globally rewritten. The KDE assets require the Core CLI to match the current executable and require a KDE update ref in the Core's update profile. Reusing a pre-KDE Core is rejected. The plugin adapter is built from the same Discover point release the snapshot installs. build-discover-adapter.sh derives the version from pacman -Q discover, downloads that upstream source, verifies its published sha256, and writes the package identity to discover-version.txt; the KDE stage compares it with the Discover package in the target tree. No version is pinned in the adapters.

The first KDE transaction found no plasma-setup package in the selected mirror. The pipeline therefore packages the same Plasma release from its checksum-verified upstream archive using the packages/plasma-setup/PKGBUILD.in template inside the isolated worker. Its archive is passed to Core via ARCHIPELAGO_PLASMA_SETUP_PACKAGE, signed and included in the local package repository before snapshot identity is captured. Core does not install it; KDE installs it from that same repository. The source archive, recipe, binary checksum and build package inventory are retained. This private package path still requires compilation and installed onboarding acceptance.

Native first boot uses upstream Plasma Setup and Plasma Login Manager. The installed-only drop-in preserves upstream ordering and conditions. The greeter is a Plasma session started by plasmalogin.service, so it uses the same KWin Wayland stack as the desktop. A timer observes /etc/plasma-setup-done and a local greeter login (including upstream's temporary new-user autologin), verifies AccountsService identity, home, wheel/sudo and subordinate ranges, then records Archipelago provisioning. No account or completion marker is created by the builder.

The native Discover backend exposes one nonremovable OS resource and delegates refresh/apply to the existing Polkit helper. Flatpak and fwupd remain separate. The launcher selects those three backends; PackageKit is masked. Applying an OS update stages it and reports reboot-required; the backend never reboots itself. Support/customization descriptions come from the privileged shared CLI and retain separate booted/pending labels.

Verification status

Implementation source added 2026-11-06 while the existing Core/GNOME cycle runs. Discover compilation passed in cycle 20261106T204739Z; KDE image construction stopped at the missing Plasma Setup package. No KDE runtime check has yet run. The first completed pipeline must verify the plugin ABI, actual Plasma Setup/SDDM handoff, subordinate-ID provisioning, native application integration and the Flatpak/runtime closure. Its UI action profile must be calibrated against the actual first image; a missing profile retains the initial screen and fails acceptance rather than accepting a boot alone. The explicit first-image calibration mode waits for real upstream provisioning and authenticated SDDM login; it records manual calibration, not autonomous evidence. Full reproducibility and real GUI update acceptance remain separate open evidence.