77 lines
4.5 KiB
Markdown
77 lines
4.5 KiB
Markdown
# Offline Desktop application delivery
|
|
|
|
**Reinstated by latest user direction:** default independent GNOME applications
|
|
ship as preinstalled Flatpaks delivered on the ISO; future KDE follows the same
|
|
rule. Shell, GDM, Settings, Software, Files, terminal and system integration remain
|
|
native. The latest instruction returns all builds, Flatpak preparation and VM
|
|
acceptance to `root@yabloko`; terra stores, signs and publishes artifacts.
|
|
The persistent Flatpak cache is refreshed each build, with a verified matching
|
|
previous export available on refresh failure. See infrastructure's
|
|
`deploy/RELEASE-CYCLE.md` for the bounded operational policy.
|
|
|
|
The isolated preparer explicitly installs `diffutils` and requires `cmp` before
|
|
checking the cached policy. Without that dependency the conditional comparison
|
|
could silently skip sideload import and redownload runtimes. The dependency is
|
|
required even though the host already has comparison tools.
|
|
|
|
The ISO adapter resolves the cache's `current` symlink before copying the seed,
|
|
copies its contents into a fresh directory and verifies the copied checksums.
|
|
Run `20261106T114048Z` exposed that `cp -a current destination` preserved a relative
|
|
symlink that became dangling inside the build and ISO profile. Its image/layer
|
|
commits had already been built; the authorized recovery resumes ISO packaging
|
|
with verified seed directories, then repeats installed-VM acceptance. Completion
|
|
of that recovery and publication must be checked separately.
|
|
|
|
`enabled: false` in the seed policy disables the legacy online first-login seeder;
|
|
`delivery: installation-media` identifies the installer-owned application set.
|
|
|
|
User-approved delivery requirement, 2026-11-05: ship default applications and their
|
|
runtime dependencies on installation media. First installation must succeed without
|
|
Flathub access, including when the machine's RTC is incorrect. Subsequent application
|
|
updates/removal remain normal Flatpak operations. This is not release acceptance.
|
|
|
|
## Implementation candidate
|
|
|
|
Use upstream `flatpak create-usb` to export a verified, isolated system installation
|
|
as a sideload repository, preserving Flathub collection identities and signatures.
|
|
Resolve/download on the builder, record every app/runtime ref and commit, remote
|
|
configuration, trust input and locale/GL extensions. Freeze these inputs before ISO
|
|
assembly. Retain shared objects once, rather than separate bundles per application.
|
|
|
|
The ISO carries the repository and a digest-bound inventory. Installation populates
|
|
the target's persistent `/var/lib/flatpak` using Flatpak, before declaring desktop
|
|
installation complete. No build-machine user accounts or home data are copied.
|
|
Keep the configured remote pointing at Flathub for future updates. Do not rely on
|
|
`--sideload-repo` alone to prohibit network: acceptance runs in a network namespace
|
|
without external connectivity. Determine and verify the exact import sequence with
|
|
the packaged Flatpak version before integrating it into the installer.
|
|
|
|
Do not disable TLS/GPG checks or change the system clock to bypass verification.
|
|
Test signature behavior under skewed RTC explicitly; successful online builder
|
|
verification alone does not establish that target-side import works with that clock.
|
|
NTP remains enabled for later online operations.
|
|
|
|
## Delivery acceptance
|
|
|
|
The user narrowed this check: on the installed VM, verify that every declared
|
|
default application and its required runtimes are installed. Record refs, commits
|
|
and origins. Separate disconnected-network, skewed-clock and per-app launch
|
|
scenarios are not required for this delivery check. Existing OS/GUI acceptance
|
|
requirements remain separate.
|
|
|
|
Implementation still preserves signatures, original update origins, user removals
|
|
and isolated preparation. Do not report interrupted or incomplete imports as done.
|
|
|
|
Reference: https://docs.flatpak.org/en/latest/usb-drives.html
|
|
|
|
## Prototype evidence
|
|
|
|
On tall-bridge, `archipelago-flatpak-import-v1.service` imported all 14 declared
|
|
applications from the exported sideload repository in 45 seconds, exit 0. The
|
|
installer adapter retained the original `flathub` origin and collection ID. The
|
|
network namespace had no external connectivity; remote-add warned about optional
|
|
summary metadata and continued using local content. Exported desktop launchers
|
|
were checked for temporary installation names/paths and contained neither.
|
|
This is adapter evidence, not installed-VM or complete desktop acceptance.
|
|
Logs and resolved refs are archived on terra under
|
|
`/opt/archipelago/data/private/tall-bridge-migration/`.
|