Repository navigation
Install offline OS updates from signed NanoKVM package deltas - #1156
Conversation
dormancygrace
left a comment
There was a problem hiding this comment.
The offline solver regression passed with apk-tools 3.0.8, and the release tar and APK re-signing tests passed. One release sequence blocks merging: a device that takes a beta can lose every subsequent offline upgrade path when stable is published. The two comments address archive generation and device eligibility.
Build outputsCompared with the build of main at 485f39e; main is at dda44d9, so outputs changed since then are listed too. 3 changed, 246 added, 246 removed of 722 outputs.
|
dormancygrace
left a comment
There was a problem hiding this comment.
Verified the revised Stable-only contract. The release selector excludes Beta, the device eligibility tests pass, and the two previous threads are addressed. The APK solver, release tar and re-signing tests also passed. One blocking issue remains when a device takes a second offline update after a multi-baseline release.
Install a signed offline update from Settings → System → Updates on the Stable channel. Ordinary online updates and channel switching keep their existing behavior.
firmware/alpine/offline-minimums.json, including a previous major. Without an override, the previous public Stable release on the same major is the minimum.Verification
A locally signed test archive targeting 6.0.0 with minimum 5.3.0 upgraded isolated 5.3.0 and 5.4.0 package databases directly. The two baselines needed different dependency updates. Each applied only its own, preserved APK world and retained an unrelated Alpine package. The verifier rejected 5.1.2, 6.0.0, 6.1.0 and the Beta channel. Host tests used riscv64 package metadata and disabled package scripts.
Earlier verification covered the RISC-V server and updater build, browser upload progress and retry, interrupted/concurrent uploads, tampered/truncated archives and insufficient space.
Chained offline upgrade verification
With apk-tools 3.0.8 and temporary signing keys, two isolated riscv64 package databases with different providers upgraded from 5.3.0 and 5.4.0 to 6.0.0 and then to 6.0.1. A clean 6.0.0 image with a third provider also reached 6.0.1. Each installation ran
apk --no-network --no-scripts upgrade --no-self-upgrade nanokvm-releaseagainst the signed local index and retained its original/etc/apk/worldbyte for byte. The native archive reader verified both archives. When the next update would have removed an installed provider, the release planner rejected the archive before assembly.