Skip to content

base: catch up skillfishos-kernel on 26.06 installs, add usb-modeswitch - #139

Merged
MTSistemi merged 2 commits into
mainfrom
base-kernel-catchup-modeswitch
Nov 21, 2026
Merged

MTSistemi merged 2 commits into
mainfrom
base-kernel-catchup-modeswitch

Conversation

@MTSistemi

Copy link
Copy Markdown
Owner

What & why

#137 — installs from the 26.06.5 image never get skillfishos-kernel. The Recommends added for #103 reached those systems while live-build's 00recommends was still active, so apt skipped it. apt only installs a Recommends that is new in the upgraded version, so once skipped it is never offered again. Two things ruled out the simple fixes:

  • tightening the constraint (skillfishos-kernel (>= 7.3.4-1)) does not count as new — checked with an isolated apt-get -s simulation on apt 3.3.7;
  • a fresh 26.06.5 install jumps to the current base in one upgrade, and that apt run has already read 00recommends before base's postinst moves it away.

So base's postinst now schedules a transient unit (systemd-run --on-active=30, apt-get -o DPkg::Lock::Timeout=3600 install skillfishos-kernel), the same pattern the wrapper uses for its kernel. It fires only when:

  • /var/backups/skillfish/00recommends.live-build exists (the system came from an image without Recommends),
  • dpkg has never had the wrapper selected and apt's history shows no removal of it,
  • /var/lib/skillfish/kernel-catchup.done is absent (written on success, so it runs until it works once).

#136 — usb-modeswitch + usb-modeswitch-data were documented in docs/OPTIMIZATIONS.md but installed by nothing. base now depends on them.

#126 — README and docs/BUILD.md said kernel 7.2.9; the archive serves 7.3.4. The 26.06.5 edition table now says what the images actually carry (7.2.5) and what the first update brings. The wiki pages were updated separately.

Code scanning #542 — the comment explaining the empty except moves inside it. (#541, the world-readable chmod, is intended and gets dismissed.)

Release notes for 26.11.4 are in the base metainfo, 9 languages.

Area

  • System scripts / services
  • APT repo / packaging
  • Website / docs

Testing

  • Hardware: BC-250 (bc250-dev), kernel 7.3.4-skillfishos, apt 3.3.7.
  • apt behaviour: isolated simulations (own status file and repo, no root) — plain Recommends already present: nothing installed; constraint changed: nothing installed; new Recommends: installed.
  • The postinst block, extracted verbatim from build-debs-ci.sh with only the target package and paths swapped, ran inside a dummy package installed by apt:
    • target installed after the outer apt finished, done marker written, second run schedules nothing;
    • target previously removed with apt: nothing scheduled;
    • outer apt holding the lock 75 s: the unit waited ~45 s, then downloaded and installed the target.
  • Everything removed afterwards.

Refs #136, #137 (to be closed when 26.11.4 is published). Closes #126.

Issue #137: installs from the 26.06.5 image still never get
skillfishos-kernel. Its Recommends (#103) arrived while 00recommends was
still on, apt skipped it, and apt only installs a Recommends that is new
in the upgraded version. A changed version constraint does not count as
new (checked with apt 3.3.7), and an image installed today reaches this
version in one upgrade with 00recommends still read by that apt. So
base's postinst schedules a transient unit that installs the wrapper once
the running apt lets go of the lock: only where the 00recommends backup
proves the system came from such an image, only if dpkg never had the
wrapper selected and apt never removed it, and only until it worked once.

Issue #136: usb-modeswitch and usb-modeswitch-data were documented in
docs/OPTIMIZATIONS.md but installed by nothing; base now depends on them.

Issue #126: README and docs/BUILD.md said kernel 7.2.9, the archive
serves 7.3.4. The 26.06.5 edition table now says what the images carry
(7.2.5) and what the first update brings.

Code scanning #542: the comment explaining the empty except moves into
the except.
@MTSistemi
MTSistemi merged commit fafa656 into main Nov 21, 2026
5 checks passed
@MTSistemi
MTSistemi deleted the base-kernel-catchup-modeswitch branch November 21, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some texts no longer match what we publish

1 participant