Skip to content

fix(heal): resolve the real package arch after sysupgrade - #302

Merged
gnacho merged 1 commit into
mainfrom
fix/296-heal-arch
Sep 12, 2026
Merged

gnacho merged 1 commit into
mainfrom
fix/296-heal-arch

Conversation

@gnacho

@gnacho gnacho commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Follow-up to #301 (issue #296).

Verified end-to-end on a real opkg router: factory 24.10.5 image flashed with keep settings, netgrip files survived via sysupgrade.conf, the registry entry was gone, and the heal restored netgrip 0.72.2-1 from the latest release on its own. Two bugs surfaced in that run and are fixed here:

  • opkg print-architecture lists pseudo-archs (all, noarch) first, so the heal resolved the arch as noarch and found no matching ipk. The arch now comes from the installed busybox package, with the filtered print-architecture as fallback.
  • The wildcard-to-regex sed for asset matching broke on the / inside the character class ("bad option in substitution expression"); the asset URL match is now a direct grep pattern per flavor.

…#296)

opkg print-architecture lists pseudo-archs (all, noarch) first, so the
heal picked 'noarch' and found no matching ipk; take the arch from the
installed busybox package instead and skip the pseudo-archs. Also replace
the wildcard-to-regex sed (which broke on '/' inside the character class)
with direct grep patterns.
@gnacho
gnacho merged commit 7f44d7c into main Sep 12, 2026
@gnacho
gnacho deleted the fix/296-heal-arch branch September 12, 2026 19:42
gnacho added a commit that referenced this pull request Sep 22, 2026
…#296) (#302)

opkg print-architecture lists pseudo-archs (all, noarch) first, so the
heal picked 'noarch' and found no matching ipk; take the arch from the
installed busybox package instead and skip the pseudo-archs. Also replace
the wildcard-to-regex sed (which broke on '/' inside the character class)
with direct grep patterns.

Co-authored-by: gnacho <hnacho@proton.me>
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.

1 participant