https://blue-build.org/ logo
Issues with Experimental DNF Module on Multiple Bo...
# questions
n
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!
a
message has been deleted
g
So the error here is that there is no
dnf5
in the repositories
Copy code
[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](https://github.com/blue-build/modules/pull/377/files#diff-a6d28e0c7079df5f0522ad42a23acd305f130de1d57b004114438d9f9a7d923dR1) 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
n
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!!
g
Oh I think that's outdated
Yeah you should use the tag
dnf-module
That's what's going to be released
n
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!!
Leaving out Rocky Linux for now
I'm only able to build these images right now using the outdated version
f
You miss
packages:
in install section for latest module
Copy code
yaml
install:
  packages:
    - podman-compose
    - etc-etc-packages
n
Ohh okay got it! Now I'm having issues when listing a specific repo:
Copy code
yaml
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:
Copy code
yaml
---
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
f
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.
Copy code
yaml
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
n
cool, trying this out before moving onto groups
f
looks like something outside of our control it's either issue with how
dnf
handles this repo or repo is bad somehow
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
So neither:
Copy code
yaml
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
group-install:
  packages: 
    - "Server With GUI"
or
Copy code
yaml
---
type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
group-install:
  packages: 
    - Server With GUI
are working
but
Copy code
yaml
---
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
Copy code
yaml
---
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:
Copy code
yaml
---
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
3 Views