Skip to content

Fix: Linux hosts cannot build images#20

Open
bryborge wants to merge 2 commits intomainfrom
linuxhost-fixes
Open

Fix: Linux hosts cannot build images#20
bryborge wants to merge 2 commits intomainfrom
linuxhost-fixes

Conversation

@bryborge
Copy link
Contributor

@bryborge bryborge commented Mar 3, 2026

This work fixes some minor issues when attempting to run image generation in a podman container on a linux host. This has also been tested on macOS ✅

This should also fix #14

@bryborge bryborge marked this pull request as ready for review March 4, 2026 07:25
arch=$(uname -m);
if [ "$arch" != "aarch64" ] || [ "$arch" != "arm64" ]; then
apt-get install --no-install-recommends -y qemu-user-static;
RUN arch=$(uname -m) \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was having issues with the <<EOF syntax and got tired of wrestling with it, which is why this chunk of code got modified.

sudo chmod 777 "$PROJECT_ROOT/build"

print_info "Running image generation (requires sudo for privileged operations) ..."
exec sudo podman compose run --rm rpi_imagegen bash -c "/home/imagegen/scripts/generate-image.sh"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On macOS, this was not required, but on a linux host, it is necessary.

@bryborge bryborge requested a review from ThirteenFish March 4, 2026 07:30
Copy link
Contributor

@ThirteenFish ThirteenFish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

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.

Podman exits with error: Error: executing /usr/bin/podman-compose run --build rpi_imagegen bash -c

2 participants