diff --git a/EXTENSIONS.md b/EXTENSIONS.md index 4da481a..023eceb 100644 --- a/EXTENSIONS.md +++ b/EXTENSIONS.md @@ -100,3 +100,32 @@ target-version header resolution/failure. Shell syntax checks passed. The daemon resolver now includes exact headers in its checked dependency closure (previously only the legacy CLI download path added them). These are next-build source changes; Broadcom compilation/activation and installed-image acceptance remain unverified. + +### Broadcom sideload evidence, 2026-11-09 + +On `marchipelago-fuck-1000`, a separately compiled diagnostic CLI/daemon from +D-097 sources was installed under `/opt/archipelago-diagnostics/dkms-621a8bb`. +Only a runtime systemd drop-in selected the diagnostic daemon; immutable system +binaries and the active terra release pipeline were not replaced. + +First test exposed a second defect: pyalpm's handle does not expose hook-directory +configuration and ignored `/etc/pacman.d/hooks` masks. Native DKMS ran before the +explicit finalizer, which failed with duplicate registration. The adapter now +uses native `pacman -U` for installation of the exact checksum/signature-verified +closure, after libalpm plan validation and releasing its transaction lock. This +honors staging hook masks; the outer adapter still rejects failed package actions. + +Retry operation `6245b28b175df563140d6087779d3dff` succeeded and staged +`a8b738f3fcb904ad763a2420631db7f4f007b502c649e460c4518e3dcb8b5c66`. +Verified `broadcom-wl-dkms 6.30.223.271-50`, `dkms 3.4.4-1`, matching +`linux`/`linux-headers 7.2.14.arch1-1`, preserved mc/nano/tailscale, DKMS exit 0 +and installed status, module `wl.ko.zst` with vermagic `7.2.14-arch1-1`. +Module SHA256: `1bab8a1ea22752977a5ac7c0f0f6ce6bb9f0169a16482c0d87fd5f36f36a25cd`. +Booted deployment remained `39e63333e8c0ae0925fe029b03b3d840c5027d8f40d5bda20363a3fde34e65da`. +No reboot or live module load was performed; hardware Wi-Fi activation is unverified. + +Successful diagnostic binaries are in the kit's `hookfix/` subdirectory; logs, +before/after status and SHA256SUMS are retained there. Runtime drop-in: +`/run/systemd/system/archipelagod.service.d/dkms-diagnostic.conf`; it expires on +reboot. The staged image retains its original packaged CLI/daemon. The source +fix must also ship in a subsequent OS build for persistent management support. diff --git a/adapters/package-transaction.py b/adapters/package-transaction.py index 460a9fe..374a978 100644 --- a/adapters/package-transaction.py +++ b/adapters/package-transaction.py @@ -186,11 +186,22 @@ def main(): Path(str(path) + '.sig').write_bytes(signature) handle.load_pkg(str(path), check_sig=pyalpm.SIG_PACKAGE) elif mode == 'install': - transaction.commit() + # pyalpm does not expose libalpm hook-directory configuration. Its + # default handle ignores /etc/pacman.d/hooks masks, so using commit() + # here would run DKMS/mkinitcpio prematurely. Native pacman honors + # the staging config and masks, using the exact already-checked files. + transaction.release() + transaction = None + subprocess.run(['pacman', '--config', '/etc/pacman.conf', + '--dbpath', '/usr/lib/archipelago/package-db', + '--cachedir', '/inputs', '-U', '--noconfirm', '--', + *[str(Path('/inputs', item['filename'])) for item in resolved]], + check=True, stdout=sys.stderr, stderr=sys.stderr) require(not action_errors, 'Required package action failed') print(json.dumps(dict(version=1, resolved=resolved), separators=(',', ':'))) finally: - transaction.release() + if transaction is not None: + transaction.release() if __name__ == '__main__':