Skip to content

aurora-sep: count boot.bin device trees with bash 5.2 too - #161

Closed
chriskearney wants to merge 1 commit into
integration/aurorafrom
fix/aurora-sep-dtb-offsets
Closed

chriskearney wants to merge 1 commit into
integration/aurorafrom
fix/aurora-sep-dtb-offsets

Conversation

@chriskearney

@chriskearney chriskearney commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

m3_report_boot_dt() (the M3 report in install-aurora-sep.sh) counts the device trees in m1n1's boot.bin by finding their magic with grep -ob. It then reads each offset:match line with read. The match is the magic's raw bytes (d0 0d fe ed), which aren't valid UTF-8, and bash 5.2's read returns nothing for such a line in a UTF-8 locale. On any system with bash 5.2, the report says device trees in boot.bin: 0. Arch's bash 5.3 reads the lines, so this never showed on Omarchy, but the M3 report tests in tools/aurora-sep/tests/test_m3_max.py fail on Ubuntu 24.04. #160's host-test job is where this showed up.

The fix keeps only the offsets (| cut -d: -f1) before read sees them.

Tested

  • On GitHub's Ubuntu 24.04 runner (bash 5.2.21), test_m3_max.py -k ReportTest fails 5 cases without the change (run) and passes all 7 with it (run).
  • On Arch (bash 5.3), all 68 tests in test_m3_max.py still pass.

🤖 Generated with Claude Code

m3_report_boot_dt() finds the device trees in m1n1's boot.bin by their
magic with grep -ob, and read each "offset:match" line. The match is the
magic's bytes, which are not valid UTF-8, and bash 5.2's read returns
nothing for such a line in a UTF-8 locale: the report then says
"device trees in boot.bin: 0" on any system with bash 5.2 (Ubuntu 24.04,
for one), and the M3 report tests fail there. Arch's bash 5.3 reads the
lines, which is why the tests pass on Omarchy.

Keep only the offsets before read sees them.

Signed-off-by: Chris Kearney <303316+iconidentify@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chriskearney added a commit that referenced this pull request Oct 20, 2026
… with

Both fixes the CI needs, #159 and #161, with their own commits; this
branch is rebased onto integration/aurora once they merge.

Signed-off-by: Chris Kearney <303316+iconidentify@users.noreply.github.com>
@chriskearney

Copy link
Copy Markdown
Collaborator Author

Folded into #160 as its own commit (same change), so the fixes and the CI that found them land together.

@chriskearney
chriskearney deleted the fix/aurora-sep-dtb-offsets branch October 20, 2026 15:32
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