Skip to content

Conversation

@learmj
Copy link
Collaborator

@learmj learmj commented Nov 20, 2025

  • Moved all hook dispatch and rootfs overlay handling into bin/runner simplifying the top level script.
  • Added tagged-path + spec resolution in lib/common.sh so hooks, assets, and overlays can reference defined tags to locate root directories for built-in, src dir, device/image assets, or config vars uniformly regardless of host/container layout.
  • Declared hook phases/overlay maps in one place with explicit ordering (built-ins first, user overrides last) and updated rpi-image-gen to marshall every stage through the runner for setup/build/image/deploy/SBOM.
  • Net result: fewer ad‑hoc path joins, predictable hook lookup/ordering, and a single runner entry point that can evolve without touching the main script.

Extend the layer mgmt class to accept tags in the search path, add a
new relative path output format which includes those tags, and use it
in the top level script. By supporting tags in the layer search path it
means a client can map a layer path from layer discovery (bootstrap) to
build, meaning that it's possible to translate those paths into a
container environment.
Route all hooks through bin/runner. This provides a centralised location
for the execution of all hooks and application of filesystem overlays.
Use tagged paths so that mapping of on-disk locations can be translated
between environments.

Add support of src dir hooks to various stages.

Apply overlays and run device and image hooks in bdebstrap context so
that filesystem only builds can still have those injects applied.
Updated to take account of improvements to hook execution and path
mapping.
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