Issues with Experimental DNF Module on Multiple BootC Images

I’ve been testing the experimental DNF module on a few different images: CentOS 10, AlmaLinux 10, Bluefin LTS, Helium Linux 10, and Rocky Linux 9. I managed to get DNF5 installed across all of them, but now I’m running into the same errors during the DNF module phase. Here’s the build run link with logs: https://github.com/nobodywatchin/bootc-testing/actions/runs/13712607860/job/38351816704 Any ideas on what might be going wrong? Appreciate any insights!
10 Replies
Luke Skywunker
So the error here is that there is no dnf5 in the repositories
[02:47:00 g.i/n/rocky-testing:latest] => > [rocky-testing 9/15] RUN dnf install -y dnf5:
[02:47:00 g.i/n/rocky-testing:latest] => 1.405 Copr repo for dnf-nightly owned by rpmsoftwarem 370 kB/s | 389 kB 00:01
[02:47:00 g.i/n/rocky-testing:latest] => 2.203 Extra Packages for Enterprise Linux 9 - x86_64 33 MB/s | 23 MB 00:00
[02:47:00 g.i/n/rocky-testing:latest] => 7.353 Extra Packages for Enterprise Linux 9 openh264 4.9 kB/s | 2.5 kB 00:00
[02:47:00 g.i/n/rocky-testing:latest] => 8.248 Rocky Linux 9 - BaseOS 5.1 kB/s | 4.1 kB 00:00
[02:47:00 g.i/n/rocky-testing:latest] => 8.518 Rocky Linux 9 - AppStream 18 kB/s | 4.5 kB 00:00
[02:47:00 g.i/n/rocky-testing:latest] => 9.886 Rocky Linux 9 - CRB 1.9 MB/s | 2.6 MB 00:01
[02:47:00 g.i/n/rocky-testing:latest] => 11.47 No match for argument: dnf5
[02:47:00 g.i/n/rocky-testing:latest] => 11.48 Error: Unable to find a match: dnf5
[02:47:00 g.i/n/rocky-testing:latest] => > [rocky-testing 9/15] RUN dnf install -y dnf5:
[02:47:00 g.i/n/rocky-testing:latest] => 1.405 Copr repo for dnf-nightly owned by rpmsoftwarem 370 kB/s | 389 kB 00:01
[02:47:00 g.i/n/rocky-testing:latest] => 2.203 Extra Packages for Enterprise Linux 9 - x86_64 33 MB/s | 23 MB 00:00
[02:47:00 g.i/n/rocky-testing:latest] => 7.353 Extra Packages for Enterprise Linux 9 openh264 4.9 kB/s | 2.5 kB 00:00
[02:47:00 g.i/n/rocky-testing:latest] => 8.248 Rocky Linux 9 - BaseOS 5.1 kB/s | 4.1 kB 00:00
[02:47:00 g.i/n/rocky-testing:latest] => 8.518 Rocky Linux 9 - AppStream 18 kB/s | 4.5 kB 00:00
[02:47:00 g.i/n/rocky-testing:latest] => 9.886 Rocky Linux 9 - CRB 1.9 MB/s | 2.6 MB 00:01
[02:47:00 g.i/n/rocky-testing:latest] => 11.47 No match for argument: dnf5
[02:47:00 g.i/n/rocky-testing:latest] => 11.48 Error: Unable to find a match: dnf5
https://github.com/nobodywatchin/bootc-testing/actions/runs/13712607860/job/38351816705 Here you have an issue with the schema. I would suggest looking at the module.yml in the PR for an example. We haven't fully released it yet, we have documentation to do Looks like it's the same with your other runs too
Nobody Watchin
Nobody WatchinOP4w ago
actually, Rocky is just missing the repos but I think the other runs were okay I just answered my own question in real-time though! I switched to source: ghcr.io/blue-build/modules/dnf:dnf-module-gmpinder and that worked!!
Luke Skywunker
Oh I think that's outdated Yeah you should use the tag dnf-module That's what's going to be released
Nobody Watchin
Nobody WatchinOP4w ago
Weird There's a few margins for error here because I'm using an EPEL 10 repo on the COPR I'm going to clean my images up and test more, will report back when I have more successful builds with these other distros and I can compare!! So here's the run with the outdated one: https://github.com/nobodywatchin/bootc-testing/actions/runs/13715069186 And here's the run with the newer one: https://github.com/nobodywatchin/bootc-testing/actions/runs/13715514569 Leaving out Rocky Linux for now I'm only able to build these images right now using the outdated version
fiftydinar
fiftydinar4w ago
You miss packages: in install section for latest module
install:
packages:
- podman-compose
- etc-etc-packages
install:
packages:
- podman-compose
- etc-etc-packages
Nobody Watchin
Nobody WatchinOP4w ago
Ohh okay got it! Now I'm having issues when listing a specific repo:
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
install:
repo: https://pkgs.tailscale.com/stable/centos/10/tailscale.repo # Can specify the repo for packages to install
packages:
- tailscale
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
install:
repo: https://pkgs.tailscale.com/stable/centos/10/tailscale.repo # Can specify the repo for packages to install
packages:
- tailscale
is this format correct? I have issues with this one too:
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
group-install:
packages:
- Server With GUI
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
group-install:
packages:
- Server With GUI
^ which does work with the outdated one so I'm suspicious that it's my syntax
fiftydinar
fiftydinar4w ago
You need to get repo id, which is tailscale-stable in this case (you can see it in repo file enclosed in[ ]). Which means that repo needs to be already present.
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
repos:
files:
- https://pkgs.tailscale.com/stable/centos/10/tailscale.repo
install:
packages:
- repo: tailscale-stable
packages:
- tailscale
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
repos:
files:
- https://pkgs.tailscale.com/stable/centos/10/tailscale.repo
install:
packages:
- repo: tailscale-stable
packages:
- tailscale
You can omit - repo, as tailscale likely won't be in repo other than tailscale-stable. It won't automatically download repo like rpm-ostree does, it only tells from where package should be pulled from to get it installed, hence why repo URL needs to be provided for download before install operation. I'm not sure on this one
Nobody Watchin
Nobody WatchinOP4w ago
cool, trying this out before moving onto groups Running into new issues with the tailscale part: https://github.com/nobodywatchin/bootc-testing/actions/runs/13726315825/job/38393465165
fiftydinar
fiftydinar4w ago
looks like something outside of our control it's either issue with how dnf handles this repo or repo is bad somehow
Nobody Watchin
Nobody WatchinOP4w ago
bluefin LTS managed to do it: https://github.com/ublue-os/bluefin-lts/blob/d0f787d2b6580584d8779da8807b1a58c07b1b67/build_scripts/20-packages.sh#L33 I'll kick tailscale for now... will come back to that soon with your help, my dnf.yml file is working when using the latest version of the DNF module, but my gnome-de.yml file was not, I switched it back to dnf-module-gmpinder and now that's building: https://github.com/nobodywatchin/bootc-testing/actions/runs/13726875343/job/38395288035 I know that it's working because without that group then my gnome-extensions module would fail seems like something is off with package groups, any insight is appreciated! I tried installing the group with quotes "Server with GUI" and this is the result: https://github.com/nobodywatchin/bootc-testing/actions/runs/13731626955/job/38409636898 ignore my EL9 images as they will fail until I get dnf5 working on it properly Here's the result without quotations: https://github.com/nobodywatchin/bootc-testing/actions/runs/13731706682/job/38409863032 So neither:
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
group-install:
packages:
- "Server With GUI"
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
group-install:
packages:
- "Server With GUI"
or
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
group-install:
packages:
- Server With GUI
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
group-install:
packages:
- Server With GUI
are working but
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module-gmpinder
group-install:
packages:
- Server With GUI
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module-gmpinder
group-install:
packages:
- Server With GUI
is definitely working now I'm going back to the tailscale part So, I got tailscale installing by copying how bluefin:LTS did it
---
type: containerfile
snippets:
- RUN dnf config-manager --add-repo https://pkgs.tailscale.com/stable/centos/10/tailscale.repo
- RUN dnf config-manager --set-disabled "tailscale-stable"
# FIXME: tailscale EPEL10 request: https://bugzilla.redhat.com/show_bug.cgi?id=2349099
- RUN dnf -y --enablerepo "tailscale-stable" install tailscale
---
type: containerfile
snippets:
- RUN dnf config-manager --add-repo https://pkgs.tailscale.com/stable/centos/10/tailscale.repo
- RUN dnf config-manager --set-disabled "tailscale-stable"
# FIXME: tailscale EPEL10 request: https://bugzilla.redhat.com/show_bug.cgi?id=2349099
- RUN dnf -y --enablerepo "tailscale-stable" install tailscale
Does work! However, this does not:
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
repos:
files:
- https://pkgs.tailscale.com/stable/centos/10/tailscale.repo
install:
packages:
- tailscale
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
repos:
files:
- https://pkgs.tailscale.com/stable/centos/10/tailscale.repo
install:
packages:
- tailscale
Can be seen building here: https://github.com/nobodywatchin/bootc-testing/actions/runs/13732209749/job/38411173827

Did you find this page helpful?