3 Commits
Author SHA1 Message Date
Abdurrahman Kaan DikeçandClaude Opus 5.5 5d4ed8a8b8 Diffs: never leave out the files rootfs-fixups gives a capability
Testing v2026.10.27.3 on an F50 (Ubuntu 24.04, from v2026.10.27.2): the diff was downloaded but not used, "1 of the
files it takes from the installed system are not as v2026.10.27.2 had them", and the whole image (175 MB instead of
6 MB) was downloaded. The file was /usr/bin/ping: its content, mode and owner are the image's, but rootfs-fixups sets
cap_net_raw on it at every boot, and mu300-carry same rightly refuses a file with an extended attribute. So every
Ubuntu device fell back to the whole image. With the capability taken off by hand, the same device took the diff
("the diff gives the release's image").

image-diff.py now keeps rootfs-fixups's files (ping, mtr-packet, arping) in the diff like the update's own tools.
Tests: the list is rootfs-fixups's own; an unchanged ping is in the diff. The make-diffs openssl test stub now
behaves like LibreSSL (base64 works, pkeyutl has no -rawin).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-28 01:12:02 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 61dd5487fd make-diffs: check base signatures with MU300_OPENSSL; stop when nothing can
The first release with diffs (v2026.10.27.3) was built on a Mac and its first build made no diffs at all. make-diffs.sh
checks each base's SHA256SUMS with mu300-update's sig_state, which calls "openssl" from PATH: macOS's LibreSSL has no
-rawin, so every base was "notool", treated as unsigned and skipped, though MU300_OPENSSL named OpenSSL 3 for the
signing. The release would have gone out without diffs only because of the build machine.

- MU300_OPENSSL's directory comes first in PATH for the base checks.
- Where the tree has the release key and no openssl here can check Ed25519, make-diffs (and so make-release) stops
  instead of making no diffs.
- Test: a stub openssl without -rawin stops it; MU300_OPENSSL then gives the five diffs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-28 00:15:27 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 8dc52c6933 Signed release diffs: download only what changed since the installed release
Ported from kanoqwq/mu300-linux b8d4f222, fb0b28e7, b9f71e72 (OTA diff, diffs
made from an old release's index), rebuilt on our signed releases:

- tools/image-diff.py: a diff is the new image without the regular files the
  base image had with the same manifest line, only in program/library trees
  (never etc, var, home, usr/local, package DBs, files with xattrs or hard
  links, or the update's own tools); .mu300-diff names base, target and what
  was left out. check rebuilds the target manifest from diff + base.
- tools/make-diffs.sh (run by make-release.sh before SHA256SUMS): diffs from
  the five releases before, from their published manifests; a base is taken
  only as its SHA256SUMS lists it and, with the release key in the tree, only
  when that SHA256SUMS is signed (mu300-update's sums_verdict). The diffs are
  then listed in this release's SHA256SUMS, so the release key signs them.
- mu300-update (diff block): diff_fetch takes the diff named by the installed
  image's own manifest through fetch_verified (signature and checksum, as for
  the whole image); diffs_unpack, after every download, unpacks it with the
  delta block, fills the left-out files from the installed system only where
  it has them byte for byte, and keeps the result only when mu300-carry
  manifest of it equals the release's signed manifest. Otherwise the whole
  image is downloaded. Carry, accounts, vendor files, extras, VPN and kill
  switch, .old rollback: unchanged. MU300_DIFF=0 turns it off.
- release_json reports the diff as the download (diffs count); the LuCI
  update page says "only what changed since the installed release".
- magisk.yml no longer downloads the diffs.

Trial on published releases (v2026.10.26.1 -> v2026.10.27.2): ubuntu 184 MB
-> 10.8 MB, openwrt-luci 24 MB -> 8.6 MB; the rebuilt trees equal the whole
images (diff -r) and their signed manifests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-27 22:14:13 +03:00