Preserve package adapter JSON stream and accept serial CRCRLF diagnostics
This commit is contained in:
parent
6b85be9c99
commit
9e963b87ef
2 changed files with 12 additions and 1 deletions
|
|
@ -124,6 +124,15 @@ Required before claiming hardware readiness:
|
|||
|
||||
## Execution order after this audit
|
||||
|
||||
Run `20261108T202529Z` passed adapter builds and reached package download in Core
|
||||
Stage, past the previous lock failure. The package command exited successfully but
|
||||
its output failed JSON decoding. nspawn defaults to a read-only PTY for nonterminal
|
||||
callers, multiplexing stderr (including download-mode pacman-key diagnostics) into
|
||||
stdout. The package adapter now explicitly uses `--console=pipe` to preserve its
|
||||
JSON stdout channel. Runtime confirmation awaits the next normal pipeline.
|
||||
Failure diagnostics were collected, but their completion marker contained CRCRLF;
|
||||
the probe now accepts repeated CR before LF rather than timing out after collection.
|
||||
|
||||
Run `20261108T173013Z` passed catalog signature checks, extension enable and nano
|
||||
resolution. Stage then failed acquiring the compose lock. The read-only observer
|
||||
also owns that lock for up to 10s plus 2s termination; mutation previously tried
|
||||
|
|
|
|||
|
|
@ -66,7 +66,9 @@ impl Sandbox {
|
|||
|
||||
pub fn invoke(&self, worker: &Worker, mode: &str, request: &Value, offline: bool) -> Result<Value> {
|
||||
storage::atomic(&self.path.join("request.json"), request)?;
|
||||
let mut args = vec!["--quiet".to_owned(), "--settings=no".into(), "--register=no".into(),
|
||||
// Preserve JSON stdout independently from pacman-key/libalpm stderr.
|
||||
// nspawn's default read-only console multiplexes both through a PTY.
|
||||
let mut args = vec!["--quiet".to_owned(), "--console=pipe".into(), "--settings=no".into(), "--register=no".into(),
|
||||
format!("--directory={}", self.root.display()),
|
||||
format!("--bind-ro={}:/run/archipelago-package-sandbox", self.path.join("sandbox-marker").display()),
|
||||
format!("--bind-ro={}:/run/package-transaction.py", self.path.join("package-transaction.py").display()),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue