Copy resolved Flatpak seed contents into ISO build workspace

This commit is contained in:
Pavel Isaev 2026-11-06 16:07:50 +03:00
parent 27eadcfb63
commit bf835e9b8e
2 changed files with 12 additions and 2 deletions

View file

@ -14,6 +14,14 @@ 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.

View file

@ -70,10 +70,12 @@ if [[ $profile == gnome-probe ]]; then
ARCHIPELAGO_LAYER_DELTA
fi
if [[ $profile == gnome-probe ]]; then
seed=${ARCHIPELAGO_FLATPAK_SEED:?GNOME requires a prepared installation-media Flatpak seed}
seed=$(realpath -e "${ARCHIPELAGO_FLATPAK_SEED:?GNOME requires a prepared installation-media Flatpak seed}")
test -f "$seed/SHA256SUMS"
(cd "$seed"; sha256sum --quiet --check SHA256SUMS)
cp -a "$seed" "$work/flatpak-seed"
mkdir "$work/flatpak-seed"
cp -a "$seed/." "$work/flatpak-seed/"
(cd "$work/flatpak-seed"; sha256sum --quiet --check SHA256SUMS)
cat > "$work/flatpak-import.sh" <<'ARCHIPELAGO_FLATPAK_IMPORT_SCRIPT'
@@FLATPAK_IMPORT@@
ARCHIPELAGO_FLATPAK_IMPORT_SCRIPT