From b73c9c1a2ba4edc17fa9585fb05e0d97666914eb Mon Sep 17 00:00:00 2001 From: Pavel Isaev Date: Mon, 9 Nov 2026 06:40:03 +0300 Subject: [PATCH] Initialize isolated service checkout identities before extension installation --- DBUS-AUDIT.md | 8 ++++++++ adapters/extensions.sh | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/DBUS-AUDIT.md b/DBUS-AUDIT.md index bd8fd99..8cf52be 100644 --- a/DBUS-AUDIT.md +++ b/DBUS-AUDIT.md @@ -124,6 +124,14 @@ Required before claiming hardware readiness: ## Execution order after this audit +Run `20261109T014200Z` passed local package DB validation and initramfs generation. +Ownership validation rejected base /usr/bin/write (GID 5): the service checkout +had not run systemd-sysusers, unlike the legacy download path. Service install now +runs the same base sysusers initialization inside the isolated checkout before +install/validation. Host-versus-staging identity checks remain mandatory and factory +account files are restored before commit as before. Normal-pipeline confirmation +is pending; no release was published by this run. + Run `20261108T225854Z` passed JSON download and exact nano installation in the private checkout. Validation then failed because `pacman -Dk` initialized the runtime DownloadUser=alpm from pacman.conf, absent in this checkout. Post-install diff --git a/adapters/extensions.sh b/adapters/extensions.sh index ff29af2..346f427 100644 --- a/adapters/extensions.sh +++ b/adapters/extensions.sh @@ -143,6 +143,11 @@ systemd-nspawn --settings=no --register=no --private-network --resolv-conf=off " cd /inputs; sha256sum -c SHA256SUMS; cd / mapfile -t requested < /requested if [[ ${ARCHIPELAGO_SERVICE_PACKAGE:-0} == 1 ]]; then + # The service checkout has factory account files, unlike the legacy + # path which already ran sysusers during download. Materialize the + # base identities before installation and ownership validation. + # Factory files are restored below before committing the image. + systemd-sysusers python /run/package-transaction.py install /run/package-request.json else pacman -S --needed --noconfirm --cachedir /inputs -- "${requested[@]}"