Document the local-archive transaction fixes

This commit is contained in:
Archipelago 2026-11-23 23:17:36 +03:00
parent a21673f8d0
commit 37b38a2374

View file

@ -124,6 +124,16 @@ universal DKMS support.
unclassified package actions still fail.
Signatures/checksums and exact snapshot inputs remain mandatory. Configurations
are never sourced on the live host during archive inspection.
- A second transaction pass (adding exact `<pkgbase>-headers` for DKMS) must not
reuse package objects from the released first transaction: `alpm_trans_release`
frees the packages loaded from local archives, and the next `prepare()` then
sorted a freed package and crashed in `strcmp`. The pass is rebuilt from the
durable request rows (repository identity or retained archive checksum) plus
the header names/versions; a mismatch between passes fails explicitly.
- `extension add` imports every archive as its own durable request. One command
keeps one request id for the plan and Stage, but each `ImportPackage` call uses
a token derived from it (trailing hex digits), because the journal refuses one
request id with different canonical inputs.
- Offline staging explicitly adds/builds/installs each source for each image kernel,
with bounded commands. Validate matching headers, installed status, nonempty
module outputs and vermagic; preserve preexisting modules. Then run depmod and