Compose GNOME from reusable Core and deliver Flatpaks on ISO

This commit is contained in:
Pavel Isaev 2026-11-06 02:52:15 +03:00
parent 7534fe4a25
commit 3da1531102
6 changed files with 270 additions and 10 deletions

View file

@ -1,9 +1,13 @@
# Offline Desktop application delivery
**Superseded by user direction:** default GNOME applications now ship as native
Arch packages in the OS image; future KDE follows the same rule. Parallel optional
Flatpak installations remain allowed. The preparation experiment is stopped and
this document is retained as historical design context, not a release prerequisite.
**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 interim native-app candidate was stopped. Builder is now
`root@tall-bridge`; terra stores, signs and publishes artifacts.
`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
@ -43,3 +47,15 @@ Implementation still preserves signatures, original update origins, user removal
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/`.

83
LAYERED-GNOME.md Normal file
View file

@ -0,0 +1,83 @@
# Core reuse and Purpose composition — private v0 adapter
The GNOME build path now requires `ARCHIPELAGO_CORE_BUILD` pointing to an existing
Core build artifact (repository, pinned sync databases and signed package inputs).
The old full-root GNOME pacstrap branch is no longer selected. Core builds remain
the existing Core-only path. This is a constrained adapter, not a frozen layer API.
1. Pin `layers/core` to its checksum and import it from a read-only source.
2. Check out its payload as the isolated Purpose build environment. Reuse its
package database and frozen repository universe; never refresh target databases.
3. Install missing GNOME packages, rejecting Core package changes/removal and
undeclared changes to Core files. The only allowed file overrides are the
`archipelago`-owned OS identity defaults and initramfs configuration, with
expected input content and reasons recorded.
4. Capture additions and package records into a separate Purpose OSTree commit.
Shared Core packages are requirements, not duplicated Purpose payload.
5. Compose fresh staging from Core plus the checked-out Purpose commit, without
invoking pacman. Validate snapshot, package requirements and every path's input
identity before merging. Reconstruct the package DB from unchanged Core records
and new Purpose package records.
6. Finalize the complete composition (GNOME caches, depmod, initramfs, hwdb), and
record both input layer commits in the image commit. Reuse Core locales.
`composer/layer_delta.py` implements this private filesystem adapter. Requirements
currently conservatively pin the Core package set and allowed override input
content, not a mandatory Core commit field. Provenance records the actual Core
commit used. General dependency reassignment/removal, arbitrary overlays and a
stable package-index schema remain separate work. Source assets are recorded as
Purpose additions rather than rebuilding/replacing the Core `archipelago` package.
The supplied Core's binary is intentionally retained; a changed installed CLI
requires a new Core build, not a hidden replacement by Purpose.
The old GNOME-only patched Toolbx package cannot be added to the Core's frozen
package universe after the fact. This path resolves Toolbx from that universe;
any required custom package must be included when preparing the common snapshot.
Evidence: `reused-core.commit`, `purpose-layer.commit`, `purpose-transaction.log`,
`composition.txt`, plus immutable Purpose `metadata/delta.json`. Unit checks cover
no duplicate Core payload, rejection of snapshot/Core package changes and tampering.
Real GNOME composition/ISO acceptance is still required.
## Operational rules and failure handling
Build execution is on `root@tall-bridge`; terra remains the artifact storage,
signing and publication host. `ARCHIPELAGO_MIRROR_URL` selects build transport
(currently xTom Estonia), not the installed OS mirror. Core payload, Purpose
payload and live ISO must retain `https://mirror.nw-sys.ru/archlinux/$repo/os/$arch`.
Purpose restores the Core mirrorlist before capture. Target sync databases remain
the frozen Core inputs regardless of transport.
Fix failures in the source adapter before continuing a run. One-off checkpoint
scripts are recovery evidence only; they are not a supported resume interface or
proof of unattended readiness. Keep durable systemd job results and logs, and
report the failing phase explicitly. Never publish a failed or unknown result.
Observed integration failures and permanent corrections:
| Failure | Source correction | Verification |
| --- | --- | --- |
| Missing `alpm` staging user | Run standard sysusers in the isolated build root | Real transaction progressed |
| libalpm cannot locate cache mount | Bind staging root and shared cache; retain CheckSpace | Real transaction completed |
| Account backup differs from Core | Restore primary and `*-` account databases | Real capture completed |
| Package inventory initializes repository trust/download user or cannot resolve relocated DB | Query through `arch-chroot` with `--config /dev/null --dbpath /usr/lib/archipelago/package-db -Q`; read only the local DB | Integration continuation pending |
| Copy loses setuid/setgid or capabilities | Apply ownership before mode/xattrs; verify copied identity | Privileged-mode regression passed; real composition rerun pending |
Capture checks the copied object against the recorded source identity before
commit. Compose validates input identities and checks each copied output. Keep
the original transaction staging and layer tree until composition succeeds, so
a failure can be investigated against its source rather than repaired from
metadata. Recovery of the earlier run's mode/capabilities was a one-off repair;
the ordinary pipeline must preserve these attributes without such repair.
Still open: a supported, validated checkpoint/resume interface; complete
unattended end-to-end acceptance; publication/retention provenance for separate
Purpose commits. Do not describe these as implemented based on a resumed probe.
After the finalized image commit and provenance have been written successfully,
remove the disposable composition and Core checkout before ISO packaging. Keep
the repository, immutable Core input, logs and evidence. The first layered run
reached squashfs creation but ran out of disk space while writing the ISO because
these reproducible trees were still present. Resume packaging from archiso's
completed stages after freeing only those scratch copies; do not delete the live
root before its post-build self-check or remove unrelated host workloads.

View file

@ -5,6 +5,12 @@ archive=$(realpath "$2")
binary=$(realpath "$3")
profile=${4:-core}
[[ $profile == core || $profile == gnome-probe ]]
core_bind=()
if [[ $profile == gnome-probe ]]; then
core_input=$(realpath "${ARCHIPELAGO_CORE_BUILD:?GNOME requires an existing Core build artifact}")
test -d "$core_input/repo"
core_bind=(--bind-ro="$core_input:/core-input")
fi
[[ $work != / && $work != /usr && $work != /var && $work != *:* && $work != *','* ]]
mkdir -p "$work"
exec 9>"$work/build.lock"
@ -57,6 +63,20 @@ grep -q '^DisableSandbox' "$toolroot/etc/pacman.conf" || sed -i '/\[options\]/a
install -m755 "$binary" "$work/archipelago"
printf '%s\n' "$profile" > "$work/build-profile"
if [[ $profile == gnome-probe ]]; then
test -f "$core_input/repo/refs/heads/layers/core"
cp "$core_input/repo/refs/heads/layers/core" "$work/core-layer.commit"
cat > "$work/layer-delta.py" <<'ARCHIPELAGO_LAYER_DELTA'
@@LAYER_DELTA@@
ARCHIPELAGO_LAYER_DELTA
fi
if [[ $profile == gnome-probe ]]; then
seed=${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"
cat > "$work/flatpak-import.sh" <<'ARCHIPELAGO_FLATPAK_IMPORT_SCRIPT'
@@FLATPAK_IMPORT@@
ARCHIPELAGO_FLATPAK_IMPORT_SCRIPT
if [[ -n ${ARCHIPELAGO_TOOLBOX_PACKAGE:-} ]]; then
cp "$ARCHIPELAGO_TOOLBOX_PACKAGE" "$work/toolbox-probe.pkg.tar.zst"
sha256sum "$work/toolbox-probe.pkg.tar.zst" > "$work/toolbox-package-input.sha256"
@ -86,6 +106,9 @@ mkdir -p /job/core /job/evidence /job/output
cat > /job/package.sh <<'PACKAGE'
@@PACKAGE_SCRIPT@@
PACKAGE
if [[ $ARCHIPELAGO_BUILD_PROFILE == gnome-probe ]]; then
@@GNOME_LAYER_BUILD@@
else
bash /job/package.sh
mkdir -p /job/core/etc/pacman.d/hooks
# Defer the kernel's generated initramfs to the explicit complete-Core finalizer.
@ -172,6 +195,8 @@ for database in passwd shadow group gshadow; do
done
rm -rf /job/core/etc/pacman.d/gnupg
rm -f /job/core/etc/ssh/ssh_host_* /job/core/etc/.pwd.lock
# Build transport must not become the installed system's repository policy.
printf 'Server = https://mirror.nw-sys.ru/archlinux/$repo/os/$arch\n' > /job/core/etc/pacman.d/mirrorlist
mv /job/core/etc /job/core/usr/etc
rm -rf /job/core/var /job/core/home /job/core/root /job/core/srv /job/core/opt /job/core/mnt /job/core/usr/local /job/core/boot/*
mkdir -p /job/core/var /job/core/sysroot /job/core/efi
@ -200,6 +225,7 @@ mkdir -p /job/overlay/payload/usr/share/archipelago /job/overlay/metadata
printf 'Archipelago managed overlay test\n' > /job/overlay/payload/usr/share/archipelago/test-marker
printf '%s\n' "$snapshot" > /job/overlay/metadata/snapshot
ostree --repo=/job/repo commit -b test-marker --tree=dir=/job/overlay --add-metadata-string=archipelago.snapshot="$snapshot"
fi
# Minimal UEFI archiso profile based on packaged releng boot integration.
cp -a /usr/share/archiso/configs/releng /job/profile
cat > /job/profile/profiledef.sh <<'EOF'
@ -221,6 +247,8 @@ if [[ $ARCHIPELAGO_BUILD_PROFILE == gnome-probe ]]; then
sed -i 's/iso_name="archipelago-core"/iso_name="archipelago-gnome-probe"/; s/Archipelago experimental lab/Archipelago private GNOME integration probe/' /job/profile/profiledef.sh
fi
mkdir -p /job/profile/airootfs/etc/mkinitcpio.conf.d /job/profile/airootfs/root
mkdir -p /job/profile/airootfs/etc/pacman.d
printf 'Server = https://mirror.nw-sys.ru/archlinux/$repo/os/$arch\n' > /job/profile/airootfs/etc/pacman.d/mirrorlist
cat > /job/profile/airootfs/etc/mkinitcpio.conf.d/archiso.conf <<'EOF'
HOOKS=(base udev modconf archiso archiso_loop_mnt block filesystems keyboard)
COMPRESSION="zstd"
@ -253,6 +281,12 @@ cp /etc/pacman.conf /job/profile/pacman.conf
sed -i '/\[options\]/a CacheDir = /job/private-package-cache\nCacheDir = /var/cache/pacman/pkg' /job/profile/pacman.conf
mkdir -p /job/profile/airootfs/usr/share/archipelago
cp -a /job/repo /job/profile/airootfs/usr/share/archipelago/repo
if [[ $ARCHIPELAGO_BUILD_PROFILE == gnome-probe ]]; then
printf 'flatpak\npython\n' >> /job/profile/packages.x86_64
cp -a /job/flatpak-seed /job/profile/airootfs/usr/share/archipelago/flatpak-seed
cp /job/flatpak-import.sh /job/profile/airootfs/usr/share/archipelago/flatpak-import.sh
sha256sum /job/flatpak-seed/SHA256SUMS > /job/evidence/flatpak-seed.sha256
fi
mkdir -p /job/profile/airootfs/etc/tmpfiles.d
printf 'f /run/archipelago-live 0644 root root -\n' > /job/profile/airootfs/etc/tmpfiles.d/archipelago-live.conf
printf '\nArchipelago Core experimental installer\nRun: archipelago install /dev/vda --erase\n' > /job/profile/airootfs/etc/issue
@ -278,7 +312,7 @@ cd /job/output
sha256sum "$output_name" > SHA256SUMS
BUILD
systemd-nspawn --machine="archipelago-build-$$" --settings=no --register=no --resolv-conf=replace-host --capability=CAP_SYS_ADMIN,CAP_MKNOD \
-D "$toolroot" --bind="$work:/job" --bind="$cache:/var/cache/pacman/pkg" /usr/bin/bash /job/build-in-container.sh 2>&1 | tee "$outer/build.log"
-D "$toolroot" --bind="$work:/job" --bind="$cache:/var/cache/pacman/pkg" "${core_bind[@]}" /usr/bin/bash /job/build-in-container.sh 2>&1 | tee "$outer/build.log"
if [[ $outer != "$work" ]]; then
cp -a "$work/output" "$outer/output"
cp -a "$work/evidence" "$outer/evidence"

119
adapters/gnome-layer.sh Normal file
View file

@ -0,0 +1,119 @@
# Runs inside the isolated Arch builder. /core-input is read-only.
# No Core package installation or locale generation occurs on this path.
test -f /core-input/evidence/databases.sha256
test -d /core-input/repo
rmdir /job/core
pacman -S --needed --noconfirm python
ostree --repo=/job/repo init --mode=archive
core_layer=$(cat /job/core-layer.commit)
ostree --repo=/job/repo pull-local /core-input/repo "$core_layer"
ostree --repo=/job/repo refs --create=layers/core "$core_layer"
ostree --repo=/job/repo checkout --force-copy --subpath=payload "$core_layer" /job/core-base
snapshot=$(cat /job/core-base/usr/lib/archipelago/snapshot)
printf '%s\n' "$core_layer" > /job/evidence/reused-core.commit
cp -a /core-input/evidence/*.db /job/evidence/
cp -a /core-input/package-repo /job/package-repo
cp -a /core-input/private-package-cache /job/private-package-cache
pacman-key --add /core-input/evidence/package-signer.asc
pacman-key --lsign-key "$(cat /core-input/evidence/package-signer.txt)"
cat >> /etc/pacman.conf <<'CORE_PACKAGE_REPOSITORY'
[archipelago]
SigLevel = Required
Server = file:///job/package-repo
CORE_PACKAGE_REPOSITORY
pacman -Sy --noconfirm
# Preserve the exact Core repository universe; never refresh target sync databases.
cp -a --reflink=auto /job/core-base /job/purpose-stage
stage=/job/purpose-stage
mv "$stage/usr/etc" "$stage/etc"
mkdir -p "$stage/var/lib" "$stage/dev" "$stage/proc" "$stage/sys" "$stage/run" "$stage/tmp"
mv "$stage/usr/lib/archipelago/package-db" "$stage/var/lib/pacman"
sed -i '/^DBPath = /d' "$stage/etc/pacman.conf"
cp -a /etc/pacman.d/gnupg "$stage/etc/pacman.d/"
mkdir -p "$stage/etc/pacman.d/hooks"
ln -sf /dev/null "$stage/etc/pacman.d/hooks/90-packagekit-refresh.hook"
ln -sf /dev/null "$stage/etc/pacman.d/hooks/90-mkinitcpio-install.hook"
rm "$stage/etc/resolv.conf"
cp -L /etc/resolv.conf "$stage/etc/resolv.conf"
cp /etc/pacman.d/mirrorlist "$stage/etc/pacman.d/mirrorlist"
# Core intentionally contains factory accounts, reconciled by sysusers on boot.
# This isolated build root is not booted; provision its package-manager identity
# before pacman enables the standard alpm download sandbox. Factory accounts are
# restored below before capturing the Purpose payload.
arch-chroot "$stage" systemd-sysusers
mapfile -t desktop_packages < /job/gnome-packages.txt
mkdir -p "$stage/var/cache/pacman/pkg"
# libalpm CheckSpace needs a mountpoint visible as / inside the chroot. Bind the
# disposable root and shared verified archive cache instead of disabling checks.
mount --bind "$stage" "$stage"
trap 'umount "$stage/var/cache/pacman/pkg" 2>/dev/null || true; umount "$stage" 2>/dev/null || true' EXIT
mount --bind /var/cache/pacman/pkg "$stage/var/cache/pacman/pkg"
arch-chroot "$stage" pacman -S --needed --noconfirm -- "${desktop_packages[@]}" 2>&1 | tee /job/evidence/purpose-transaction.log
umount "$stage/var/cache/pacman/pkg"
umount "$stage"
trap - EXIT
if grep -Ei 'error:|==> ERROR:' /job/evidence/purpose-transaction.log; then
echo 'Required Purpose transaction action failed' >&2; exit 1
fi
rm "$stage/etc/pacman.d/hooks/90-packagekit-refresh.hook" "$stage/etc/pacman.d/hooks/90-mkinitcpio-install.hook"
cp -a /job/core-base/usr/etc/pacman.d/hooks/. "$stage/etc/pacman.d/hooks/"
rm "$stage/etc/resolv.conf"
cp -a /job/core-base/usr/etc/resolv.conf "$stage/etc/resolv.conf"
for database in passwd shadow group gshadow; do
cp -a "/job/core-base/usr/etc/$database" "$stage/etc/$database"
# Shadow utilities also write backup databases containing staging identities.
rm -f "$stage/etc/$database-"
if [[ -e /job/core-base/usr/etc/$database- ]]; then
cp -a "/job/core-base/usr/etc/$database-" "$stage/etc/$database-"
fi
done
cp -a /job/core-base/usr/etc/pacman.conf "$stage/etc/pacman.conf"
cp -a /job/core-base/usr/etc/pacman.d/mirrorlist "$stage/etc/pacman.d/mirrorlist"
rm -rf "$stage/etc/pacman.d/gnupg"
rm -f "$stage/etc/.pwd.lock"
mv "$stage/var/lib/pacman" "$stage/usr/lib/archipelago/package-db"
mv "$stage/etc" "$stage/usr/etc"
for db in /job/evidence/*.db; do cmp "$db" "$stage/usr/lib/archipelago/package-db/sync/$(basename "$db")"; done
# Distribution integration is a separately indexed Purpose contribution. Only two
# declared Core-owned configuration files may be overridden (see delta adapter).
pkg=/job/purpose-assets
mkdir -p "$pkg/runtime/usr/lib/archipelago/defaults" "$pkg/runtime/usr/lib/systemd/system" \
"$pkg/runtime/usr/lib/tmpfiles.d" "$pkg/runtime/usr/lib/systemd/system-preset"
cp /job/core-base/usr/lib/archipelago/defaults/os-release "$pkg/runtime/usr/lib/archipelago/defaults/"
cp /job/core-base/usr/lib/archipelago/mkinitcpio-core.conf "$pkg/runtime/usr/lib/archipelago/"
@@GNOME_ASSETS@@
cp -a "$pkg/runtime/." "$stage/"
python /job/layer-delta.py capture /job/core-base "$stage" /job/purpose-layer
purpose_layer=$(ostree --repo=/job/repo commit -b layers/purpose/desktop/gnome --tree=dir=/job/purpose-layer \
--add-metadata-string=archipelago.snapshot="$snapshot")
printf '%s\n' "$purpose_layer" > /job/evidence/purpose-layer.commit
# Retain the original transaction output until commit checkout and composition
# have both validated the payload. A failed copy must not destroy its source.
ostree --repo=/job/repo checkout --force-copy "$purpose_layer" /job/purpose-input
python /job/layer-delta.py compose /job/core-base /job/purpose-input /job/composed
rm -rf /job/purpose-stage /job/purpose-layer /job/purpose-input
# All work below operates on the composition, never the immutable input layers.
mv /job/composed /job/core
mv /job/core/usr/etc /job/core/etc
cp /job/core/usr/lib/archipelago/defaults/os-release /job/core/etc/os-release
@@GNOME_FINALIZE@@
arch-chroot /job/core /bin/bash -euxc 'k=$(basename /usr/lib/modules/*); depmod "$k"; mkinitcpio -c /usr/lib/archipelago/mkinitcpio-core.conf -k "$k" -g "/usr/lib/modules/$k/initramfs.img"; ldconfig; systemd-hwdb update --usr'
# Inventory is a read-only local DB query: do not initialize repository trust or
# the download sandbox in a finalized root containing factory accounts.
arch-chroot /job/core pacman --config /dev/null --dbpath /usr/lib/archipelago/package-db -Q > /job/evidence/core-packages.txt
cp /job/evidence/core-packages.txt /job/core/usr/lib/archipelago/packages.txt
(cd /job/core; sha256sum usr/share/libalpm/hooks/*.hook) > /job/core/usr/lib/archipelago/hook-policy/hooks.sha256
find /job/core/usr/lib/archipelago/package-db/local -name install -exec sha256sum '{}' + > /job/core/usr/lib/archipelago/hook-policy/scriptlets.sha256
mv /job/core/etc /job/core/usr/etc
mv /job/core /job/composed
ostree --repo=/job/repo commit -b core --tree=dir=/job/composed \
--add-metadata-string=archipelago.snapshot="$snapshot" \
--add-metadata-string=archipelago.layer-core="$core_layer" \
--add-metadata-string=archipelago.layer-purpose="$purpose_layer"
ostree --repo=/job/repo pull-local /core-input/repo test-marker
test "$(ostree --repo=/core-input/repo rev-parse "$core_layer")" = "$core_layer"
printf 'Core reused: %s\nPurpose: %s\n' "$core_layer" "$purpose_layer" > /job/evidence/composition.txt
# Both trees are now reproducible from retained commits. Release scratch space
# before archiso creates its live root, squashfs and ISO concurrently.
rm -rf /job/composed /job/core-base

View file

@ -34,5 +34,9 @@ test ! -e /seed/export
mkdir /seed/export
flatpak create-usb --system /seed/export "${apps[@]}"
ostree --repo=/seed/export/.ostree/repo fsck
cp /seed/flathub.flatpakrepo /seed/export/
cp /policy.json /seed/export/policy.json
cp /seed/evidence/refs.tsv /seed/export/refs.tsv
(cd /seed/export; find . -type f ! -name SHA256SUMS -print0 | sort -z | xargs -0 sha256sum > SHA256SUMS)
date --utc --iso-8601=seconds > /seed/evidence/export-complete
echo 'SEED_EXPORT_COMPLETE: offline import and clock-skew acceptance still required'

View file

@ -1,17 +1,21 @@
//! Experimental x86_64 Core ISO profile. Native tools execute inside nspawn.
pub fn build_iso_script() -> String {
let package = include_str!("../adapters/package.sh")
.replace("@@PKGBUILD@@", include_str!("../../cli/packaging/PKGBUILD"))
.replace("@@GNOME_PACKAGE@@", &include_str!("../adapters/gnome-package.sh")
let gnome = include_str!("../adapters/gnome-package.sh")
.replace("@@FLATPAK_POLICY@@", include_str!("../../purposes/proposals/gnome-flatpak-apps.json"))
.replace("@@SOFTWARE_HELPER@@", include_str!("../../system/integrations/gnome-software/software-helper"))
.replace("@@SOFTWARE_POLICY@@", include_str!("../../system/integrations/gnome-software/org.archipelago.software.policy"))
.replace("@@SOFTWARE_SERVICE@@", include_str!("../../system/integrations/gnome-software/archipelago-software-refresh.service"))
.replace("@@SOFTWARE_TIMER@@", include_str!("../../system/integrations/gnome-software/archipelago-software-refresh.timer"))
.replace("@@TOOLBOX_CONFIG@@", include_str!("../../purposes/common/desktop/toolbox.conf")));
.replace("@@TOOLBOX_CONFIG@@", include_str!("../../purposes/common/desktop/toolbox.conf"));
let package = include_str!("../adapters/package.sh")
.replace("@@PKGBUILD@@", include_str!("../../cli/packaging/PKGBUILD"))
.replace("@@GNOME_PACKAGE@@", &gnome);
include_str!("../adapters/build-iso.sh").replace("@@PACKAGE_SCRIPT@@", &package)
.replace("@@GNOME_LAYER_BUILD@@", &include_str!("../adapters/gnome-layer.sh").replace("@@GNOME_ASSETS@@", &gnome))
.replace("@@LAYER_DELTA@@", include_str!("../../composer/layer_delta.py"))
.replace("@@UPDATE_PROFILE@@", include_str!("../defaults/update.json"))
.replace("@@UPDATE_PUBLIC_KEY@@", include_str!("../../system/hardware-test-ostree.asc"))
.replace("@@UPDATE_PUBLIC_KEY@@", include_str!("../../system/archipelago-stable.asc"))
.replace("@@FLATPAK_IMPORT@@", include_str!("../../installer/adapters/flatpak-import.sh"))
.replace("@@GNOME_FINALIZE@@", include_str!("../adapters/gnome-finalize.sh"))
}