Skip to content

Conversation

michael545
Copy link
Collaborator

script that embeds build information (name, version, date) directly into the final image for better traceability.
An update to the DigitalOcean deployment script to make it integrated with the main build configuration.

New Image Info Script [customize90-image-info]
This script runs during the build process to create /etc/image_info.txt inside the final image.
It populates this file with the image name, version, and build date, reading the values from the standard IGconf_* build variables.
We will get signature on every device for easy identification.
Deployment Script [digital-ocean.sh]
The script is no longer hardcoded to a single image name.
It now reads the image name and path from the same IGconf_* variables used by the build system.

How to use:

  1. Create a options File: test.options
    image_name="test-image-for-devops" image_version="1.0.0"

  2. Export the build variables to be acessible to the deployment scrip, should be added to the end of build.sh

export IGconf_sys_deploydir="deploy" export IGconf_image_name="test-image-for-devops" export IGconf_image_suffix="img"

  1. Run build with the -o flag:
    ./build.sh -c config/raspbian-bookworm-v7-apt.cfg -o test.options

michael545 and others added 6 commits August 23, 2025 12:38
Adds a build hook to create /etc/image_info.txt. Updates README to document the -o flag for custom image naming.
Adds a build hook to create /etc/image_info.txt. Updates README to document the -o flag for custom image naming.
@michael545 michael545 self-assigned this Aug 26, 2025
…ious working directory before starting a new build. This prevents errors caused by leftover artifacts from a prior failed run.

- **Ensure /boot/firmware Exists:** The ubuntu24-ros2-pi5 profile now explicitly creates the /boot/firmware directory, resolving a genimage failure where it expected this directory to exist.

- **Correct Artifact Deployment:** The post-image.sh script has been fixed to correctly copy all build artifacts (both .img and .sbom files) to the deployment directory.
…ious working directory before starting a new build. This prevents errors caused by leftover artifacts from a prior failed run.

- **Ensure /boot/firmware Exists:** The ubuntu24-ros2-pi5 profile now explicitly creates the /boot/firmware directory, resolving a genimage failure where it expected this directory to exist.

- **Correct Artifact Deployment:** The post-image.sh script has been fixed to correctly copy all build artifacts (both .img and .sbom files) to the deployment directory.
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.

2 participants