Skip to content

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

@erfi-x2

Description

@erfi-x2

Running the ./generate.sh script as a super-user, with --remove-orphans removed, podman exits with the following error:

Generating image...0:00:16
[03:19:46] /home/imagegen/rpi-image-gen/image[post-image.sh] /home/imagegen/rpi-image-gen/work/rpi_uniclogs/deploy
[03:19:46] Deploying image and SBOM
*** Zstandard CLI (64-bit) v1.5.4, by Yann Collet ***
/home/imagegen/rpi-image-gen/work/rpi_uniclogs/artefacts/rpi_uniclogs.img : 35.45%   (   577 MiB =>    205 MiB, /home/imagegen/rpi-image-gen/work/rpi_uniclogs/deploy/rpi_uniclogs.img.zst) 
*** Zstandard CLI (64-bit) v1.5.4, by Yann Collet ***
/home/imagegen/rpi-image-gen/work/rpi_uniclogs/artefacts/rpi_uniclogs.img.sparse : 40.03%   (   504 MiB =>    202 MiB, /home/imagegen/rpi-image-gen/work/rpi_uniclogs/deploy/rpi_uniclogs.img.sparse.zst) 
*** Zstandard CLI (64-bit) v1.5.4, by Yann Collet ***
/home/imagegen/rpi-image-gen/work/rpi_uniclogs/artefacts/rpi_uniclogs.sbom : 11.24%   (  11.1 MiB =>   1.25 MiB, /home/imagegen/rpi-image-gen/work/rpi_uniclogs/deploy/rpi_uniclogs.sbom.zst) 
[SUCCESS] Image build completed successfully!
cp: cannot create regular file './rpi_uniclogs.img.sparse.zst': Permission denied
cp: cannot create regular file './rpi_uniclogs.img.zst': Permission denied
cp: cannot create regular file './rpi_uniclogs.sbom.zst': Permission denied
Error: executing /usr/bin/podman-compose run --build rpi_imagegen bash -c 
        /home/imagegen/scripts/generate-image.sh
    : exit status 1

Entering the container using sudo podman run -it localhost/rpi-imagegen:latest and running ./build.sh, another error can be found:

Module binfmt_misc not loaded in host
Please run:
  sudo modprobe binfmt_misc

There is no kernel module available to me as binfmt_misc on Arch Linux, but binfmt seems to be configured properly on my system, the output of running mount | grep "binfmt" is

systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=42,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=9982)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)

And the status of each systemd service (proc-sys-fs-binfmt_misc.mount, systemd-binfmt.service, and proc-sys-fs-binfmt_misc.automount) are all active and seem normal.

Let me know if anymore information is needed.

System info:
OS: Arch Linux x86_64
Kernel: Linux 6.12.51-1-lts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions