build: work around current Armbian framework bugs + short image names#10
Merged
Conversation
The framework advanced past the 6.18.28 our May images used, which broke
image builds in two ways that our scripts must now work around:
1. A debug-only `run_host_command_logged ls -lahtR <apt-dir>` aborts the
build. Modern apt creates a lists/auxfiles subdir that makes `ls -R`
print "not listing already-listed directory" and exit 2, and the
runner treats any non-zero as fatal. Drop -R (two copies).
2. extensions/armbian-config.sh auto-installs armbian-config in a
post-customize hook; that install fails against the current configng
repo and isn't needed here. Make the hook a no-op.
Both patches are idempotent and applied right after the uutils shim.
Also stop exec'ing compile.sh so we can post-process the output: rename
the (always "_minimal"-tagged) artifact to a short, correctly-labelled
name — opi5pro[-$VERSION]-{desktop,minimal}.img.xz — and regenerate the
sha256. Set VERSION=v1.7.0 to embed a release tag.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes
02-build-resolute.shbuild cleanly against the current Armbian framework (which moved past the 6.18.28 the May images used) and renames the output artifact.Framework workarounds (idempotent, applied after the uutils shim)
ls -lahtRabort — a debug-only recursivelson the apt dir now exits 2 (modern aptlists/auxfiles→ "not listing already-listed directory"), andrun_host_command_loggedtreats non-zero as fatal. Drop-Rin both copies (host-utils.sh,apt-install.sh).armbian-configin a post-customize hook; it fails against the current configng repo and isn't needed. Make the hook a no-op.Without these, the desktop build fails at image finalization.
Image naming
Stop
exec-ingcompile.shso we can post-process. Rename the artifact (Armbian always tags it_minimalbecause we passBUILD_MINIMAL=yes; the desktop content comes from our customize hook) toopi5pro[-$VERSION]-{desktop,minimal}.img.xzand regenerate the sha256.VERSION=v1.7.0embeds a release tag.Verified: a full desktop build on the updated framework completed with these fixes and produced a 939 MB image containing KDE Plasma + the working NPU stack (rknpu DKMS built against 6.18.38, overlay, librknnrt, benchmark) + Vulkan.
🤖 Generated with Claude Code