Skip to content

build: work around current Armbian framework bugs + short image names#10

Merged
mack42 merged 1 commit into
mainfrom
build/framework-fixes-and-rename
Jul 10, 2026
Merged

build: work around current Armbian framework bugs + short image names#10
mack42 merged 1 commit into
mainfrom
build/framework-fixes-and-rename

Conversation

@mack42

@mack42 mack42 commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Makes 02-build-resolute.sh build 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)

  1. ls -lahtR abort — a debug-only recursive ls on the apt dir now exits 2 (modern apt lists/auxfiles → "not listing already-listed directory"), and run_host_command_logged treats non-zero as fatal. Drop -R in both copies (host-utils.sh, apt-install.sh).
  2. armbian-config install — the newer framework auto-installs armbian-config in 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-ing compile.sh so we can post-process. Rename the artifact (Armbian always tags it _minimal because we pass BUILD_MINIMAL=yes; the desktop content comes from our customize hook) to opi5pro[-$VERSION]-{desktop,minimal}.img.xz and regenerate the sha256. VERSION=v1.7.0 embeds 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

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>
@mack42 mack42 self-assigned this Jul 10, 2026
@mack42 mack42 merged commit 153a53c into main Jul 10, 2026
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