Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

anaconda-iso fails with quay.io/almalinuxorg/almalinux-bootc and librepo=True #1221

Description

@NiklasReisser

Hi,

I am trying to build an installer image with almalinux.
Almalinux bootc support is officially experimental, and I am new to bootc, so this might be in the wrong place. If so, sorry. Please point out a better place to post the issue.

I build a image based on almalinux-bootc and this template: https://github.com/osbuild/bootc-image-builder#bootc-installer. The image to be installed is based on this example, only that its base is Almalinux: https://gitlab.com/fedora/bootc/examples/-/blob/main/kernel-rt-rpm-ostree/Containerfile?ref_type=heads

I am running Fedora Silverblue in a KVM machine.

The containers, both actual image and installer, build fine. If I base the images on Cent OS Stream 10, the image is created successfully. However this command fails for almalinux:

sudo podman run \
    --rm \
    -it \
    --privileged \
    -v ./config.toml:/config.toml:ro \
    --security-opt label=type:unconfined_t \
    -v ./output:/output -v ./config.toml:/config.toml:ro \
    -v /var/lib/containers/storage:/var/lib/containers/storage \
    quay.io/centos-bootc/bootc-image-builder:latest \
    --type anaconda-iso \
    --use-librepo=True \
    --installer-payload-ref localhost/rt-test \
    localhost/rt-test-installer -v --log-level debug

It gets a bit further with --use-librepo=False , but doesn't finish. I assume the mirror is just out of sync though, the packages really don't exist at time of writing, only up to 8.7p1-48:

source/org.osbuild.curl (org.osbuild.curl): WARNING: failed to download http://mirrors.nz.zappie.host/almalinux/9.7/BaseOS/x86_64/os/Packages/openssh-8.7p1-49.el9_7.alma.1.x86_64.rpm: The requested URL returned error: 404

To be honest, I don't understand why packages must be downloaded at all during the creation. Shouldn't they already be in container images? And the job of the bootc-image-builder is to convert the OCI image into an .iso?

How can I configure the mirror manually for testing?

Please let me know if more information is needed. Thanks for the any support!

Here is the output from the bootc-image-builder:

$ ./build.sh 
[sudo] password for niklas: 
Error: no Containerfile or Dockerfile specified or found in context directory, /var/home/niklas/Projects/bootc: no such file or directory
STEP 1/3: FROM quay.io/almalinuxorg/almalinux-bootc:latest
STEP 2/3: RUN dnf install -y      anaconda      anaconda-install-env-deps      anaconda-dracut      dracut-config-generic      dracut-network      net-tools      squashfs-tools      grub2-efi-x64-cdboot      python3-mako      lorax-templates-*      biosdevname      prefixdevname      && dnf clean all
--> Using cache 292f451c2d5e6a5b103c3bca5f987240e8c9c95d4d392684717e728feeaeb1e6
--> 292f451c2d5e
STEP 3/3: RUN mkdir /var/mnt
--> Using cache d566bf3351e8a6083461a8b3044d1421daec69e228121b5c4f78be46149dba42
COMMIT rt-test-installer
--> d566bf3351e8
Successfully tagged localhost/rt-test-installer:latest
d566bf3351e8a6083461a8b3044d1421daec69e228121b5c4f78be46149dba42
DEBU[0000] Validating environment                       
DEBU[0000] Ensuring environment setup                   
Generating manifest manifest-anaconda-iso.json
Manifest generation step
WARN[0001] Unknown distro almalinux, using default runner 
DEBU[0016] [graphdriver] trying provided driver "overlay" 
DEBU[0016] Cached value indicated that overlay is supported 
DEBU[0016] Cached value indicated that overlay is supported 
DEBU[0016] overlay: test mount indicated that metacopy is not being used 
DEBU[0016] backingFs=btrfs, projectQuotaSupported=false, useNativeDiff=true, usingMetacopy=false 
DEBU[0016] parsed reference into "[overlay@/var/lib/containers/storage+/run/containers/storage]localhost/rt-test-installer:latest" 
DEBU[0016] exporting opaque data as blob "sha256:d566bf3351e8a6083461a8b3044d1421daec69e228121b5c4f78be46149dba42" 
Done generating manifest
Disk image building step
Building manifest-anaconda-iso.json
starting -Pipeline source org.osbuild.containers-storage: e52dba7c092546c9487930f074710a85683bb315f1dc8b16bce4ce0c3f18961d
Build
  root: <host>
Pipeline source org.osbuild.inline: 2a74a4553a001fb79eb2ca1f31f16daae302d17da5878e7f848a2c31cd443119
Build
  root: <host>
Pipeline source org.osbuild.librepo: ea1c9c4092cfaab127cd01aa44047cae4a96139bea9987802a7d6a4086ba1857
Build
  root: <host>
source/org.osbuild.librepo (org.osbuild.librepo): Error downloading Packages/tigervnc-license-1.15.0-6.el9_7.1.noarch.rpm
source/org.osbuild.librepo (org.osbuild.librepo): Error downloading Packages/libwayland-egl-1.21.0-1.el9.x86_64.rpm
source/org.osbuild.librepo (org.osbuild.librepo): Error downloading Packages/plymouth-scripts-0.9.5-7.20210331git1ea1020.el9.x86_64.rpm
source/org.osbuild.librepo (org.osbuild.librepo): Error downloading Packages/fxload-2008_10_13-21.el9.x86_64.rpm
source/org.osbuild.librepo (org.osbuild.librepo): Error downloading Packages/libblockdev-fs-2.28-14.el9_6.x86_64.rpm
source/org.osbuild.librepo (org.osbuild.librepo): Error downloading Packages/harfbuzz-icu-2.7.4-10.el9.x86_64.rpm
...
<many packages>
...
source/org.osbuild.librepo (org.osbuild.librepo): 
source/org.osbuild.librepo (org.osbuild.librepo): (process:242): librepo-WARNING **: 02:00:18.376: Error while removing: No such file or directory
source/org.osbuild.librepo (org.osbuild.librepo): 
source/org.osbuild.librepo (org.osbuild.librepo): (process:242): librepo-WARNING **: 02:00:18.376: Error while removing: No such file or directory
source/org.osbuild.librepo (org.osbuild.librepo): 
source/org.osbuild.librepo (org.osbuild.librepo): (process:242): librepo-WARNING **: 02:00:18.376: Error while removing: No such file or directory
source/org.osbuild.librepo (org.osbuild.librepo): 
source/org.osbuild.librepo (org.osbuild.librepo): (process:242): librepo-WARNING **: 02:00:18.376: Error while removing: No such file or directory
source/org.osbuild.librepo (org.osbuild.librepo): 
source/org.osbuild.librepo (org.osbuild.librepo): (process:242): librepo-WARNING **: 02:00:18.376: Error while removing: No such file or directory
source/org.osbuild.librepo (org.osbuild.librepo): 
source/org.osbuild.librepo (org.osbuild.librepo): (process:242): librepo-WARNING **: 02:00:18.376: Error while removing: No such file or directory
...
<many failed removals, downloads and removals again>
...
Traceback (most recent call last):
  File "/usr/bin/osbuild", line 33, in <module>
    sys.exit(load_entry_point('osbuild==180', 'console_scripts', 'osbuild')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/osbuild/main_cli.py", line 189, in osbuild_cli
    manifest.download(object_store, monitor)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/osbuild/pipeline.py", line 581, in download
    raise e
  File "/usr/lib/python3.13/site-packages/osbuild/pipeline.py", line 576, in download
    source.download(mgr, store)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/osbuild/sources.py", line 41, in download
    reply = client.call("download", args)
  File "/usr/lib/python3.13/site-packages/osbuild/host.py", line 348, in call
    ret, _ = self.call_with_fds(method, args)
             ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/osbuild/host.py", line 384, in call_with_fds
    raise error
osbuild.host.RemoteError: RuntimeError: Packages/tigervnc-license-1.15.0-6.el9_7.1.noarch.rpm: No more mirrors to try - All mirrors were already tried without success, ... <many packages>
...
   File "/usr/lib/python3.13/site-packages/osbuild/host.py", line 268, in serve
    reply, reply_fds = self._handle_message(msg, fds)
                       ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/osbuild/host.py", line 301, in _handle_message
    ret, fds = self.dispatch(name, args, fds)
               ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/osbuild/sources.py", line 131, in dispatch
    self.fetch_all(args["items"])
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/osbuild/sources/org.osbuild.librepo", line 269, in fetch_all
    raise RuntimeError(",".join(self.errors))

2026/05/05 02:00:20 error: cannot run osbuild: error running osbuild: exit status 1


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