[dnf module] package installs complain about unknown users / groups
**Description**
When building an image with the dnf module, RPM package installs complain about unknown users and/or groups. Files installed by those packages end up with wrong ownership in resulting image.
**Steps to reproduce the issue:**
create new recipe and add "unbound" to dnf packages install
```
[...]
- type: dnf
repos:
copr:
- atim/starship
install:
packages:
- micro
- starship
- unbound
[...]
```
run `bluebuild build ./recipes/recipe.yml`
**Describe the results you received:**
package unbound is installed but files end up belonging to root:root
```
bash-5.2# ls -lah /etc/unbound/
total 76K
drwxr-xr-x. 1 root root 96 Apr 10 12:11 .
drwxr-xr-x. 1 root root 20 Apr 10 12:11 ..
drwxr-xr-x. 1 root root 70 Apr 10 12:11 conf.d
-rw-r--r--. 2 root root 423 Jan 1 1970 dnssec-root.key
-rw-r--r--. 2 root root 1.3K Jan 1 1970 icannbundle.pem
drwxr-xr-x. 1 root root 30 Apr 10 12:11 keys.d
drwxr-xr-x. 1 root root 44 Apr 10 12:11 local.d
-rw-r--r--. 1 root root 270 Nov 26 00:00 openssl-sha1.conf
-rw-r--r--. 2 root root 556 Jan 1 1970 root.key
-rw-r--r--. 1 root root 57K Nov 26 00:00 unbound.conf
```
**Describe the results you expected:**
package unbound is installed and files have correct ownership
```
[my-distrobox dnf-bug]$ ls -lah /etc/unbound/
total 84K
drwxr-xr-x. 1 root root 96 Apr 10 14:20 .
drwxr-xr-x. 1 root root 362 Apr 10 14:20 ..
drwxr-xr-x. 1 root unbound 70 Apr 10 14:20 conf.d
lrwxrwxrwx. 1 root root 38 Nov 26 01:00 dnssec-root.key -> ../../usr/share/dns-root-data/root.key
-rw-r--r--. 1 root root 1.3K Nov 26 01:00 icannbundle.pem
drwxr-xr-x. 1 root unbound 30 Apr 10 14:20 keys.d
drwxr-xr-x. 1 root unbound 44 Apr 10 14:20 local.d
-rw-r--r--. 1 root root 270 Nov 26 01:00 openssl-sha1.conf
-rw-r--r--. 1 root root 882 Nov 26 01:00 root.key
-rw-r--r--. 1 root root 57K Nov 26 01:00 unbound.conf
```
**Output of `bluebuild build ./recipes/recipe.yml` dnf module segment**
```
l/dnf-bug:latest_linux_amd64 => Installing packages:
l/dnf-bug:latest_linux_amd64 => - micro
l/dnf-bug:latest_linux_amd64 => - starship
l/dnf-bug:latest_linux_amd64 => - unbound
l/dnf-bug:latest_linux_amd64 => Updating and loading repositories:
l/dnf-bug:latest_linux_amd64 => Repositories loaded.
l/dnf-bug:latest_linux_amd64 => Package Arch Version Repository Size
l/dnf-bug:latest_linux_amd64 => Installing:
l/dnf-bug:latest_linux_amd64 => micro x86_64 2.0.15-1.fc42 updates 13.1 MiB
l/dnf-bug:latest_linux_amd64 => starship x86_64 1.24.2-1.fc42 copr:copr.fedorainfracloud.org:atim:starship 11.6 MiB
l/dnf-bug:latest_linux_amd64 => unbound x86_64 1.24.2-1.fc42 updates 3.6 MiB
l/dnf-bug:latest_linux_amd64 => Installing weak dependencies:
l/dnf-bug:latest_linux_amd64 => unbound-utils x86_64 1.24.2-1.fc42 updates 151.6 KiB
l/dnf-bug:latest_linux_amd64 =>
l/dnf-bug:latest_linux_amd64 => Transaction Summary:
l/dnf-bug:latest_linux_amd64 => Installing: 4 packages
l/dnf-bug:latest_linux_amd64 =>
l/dnf-bug:latest_linux_amd64 => Total size of inbound packages is 9 MiB. Need to download 9 MiB.
l/dnf-bug:latest_linux_amd64 => After this operation, 28 MiB extra will be used (install 28 MiB, remove 0 B).
l/dnf-bug:latest_linux_amd64 => [1/4] starship-0:1.24.2-1.fc42.x86_64 100% | 26.0 MiB/s | 3.6 MiB | 00m00s
l/dnf-bug:latest_linux_amd64 => [2/4] unbound-utils-0:1.24.2-1.fc42.x86 100% | 1.2 MiB/s | 63.1 KiB | 00m00s
l/dnf-bug:latest_linux_amd64 => [3/4] unbound-0:1.24.2-1.fc42.x86_64 100% | 2.2 MiB/s | 1.1 MiB | 00m01s
l/dnf-bug:latest_linux_amd64 => [4/4] micro-0:2.0.15-1.fc42.x86_64 100% | 3.2 MiB/s | 4.4 MiB | 00m01s
l/dnf-bug:latest_linux_amd64 => --------------------------------------------------------------------------------
l/dnf-bug:latest_linux_amd64 => [1/5] https://download.copr.fedorainfra/ 100% | 107.9 KiB/s | 994.0 B | 00m00s
l/dnf-bug:latest_linux_amd64 => --------------------------------------------------------------------------------
l/dnf-bug:latest_linux_amd64 => [5/5] Total 100% | 5.0 MiB/s | 9.2 MiB | 00m02s
l/dnf-bug:latest_linux_amd64 => Importing OpenPGP key 0x90F437F2:
l/dnf-bug:latest_linux_amd64 => UserID : "atim_starship (None) <atim#[starship@copr.fedorahosted.org](mailto:starship@copr.fedorahosted.org)>"
l/dnf-bug:latest_linux_amd64 => Fingerprint: 3986A6355A41A30A824298F0944F6B1990F437F2
l/dnf-bug:latest_linux_amd64 => From : https://download.copr.fedorainfracloud.org/results/atim/starship/pubkey.gpg
l/dnf-bug:latest_linux_amd64 => The key was successfully imported.
l/dnf-bug:latest_linux_amd64 => [1/6] Verify package files 100% | 166.0 B/s | 4.0 B | 00m00s
l/dnf-bug:latest_linux_amd64 => [2/6] Prepare transaction 100% | 34.0 B/s | 4.0 B | 00m00s
l/dnf-bug:latest_linux_amd64 => [3/6] Installing unbound-utils-0:1.24.2 100% | 13.6 MiB/s | 153.0 KiB | 00m00s
l/dnf-bug:latest_linux_amd64 => [4/6] Installing unbound-0:1.24.2-1.fc4 100% | 82.1 MiB/s | 3.6 MiB | 00m00s
l/dnf-bug:latest_linux_amd64 => >>> [RPM] group unbound does not exist - using root
l/dnf-bug:latest_linux_amd64 => >>> [RPM] group unbound does not exist - using root
l/dnf-bug:latest_linux_amd64 => >>> [RPM] group unbound does not exist - using root
l/dnf-bug:latest_linux_amd64 => >>> [RPM] group unbound does not exist - using root
l/dnf-bug:latest_linux_amd64 => >>> [RPM] group unbound does not exist - using root
l/dnf-bug:latest_linux_amd64 => >>> [RPM] group unbound does not exist - using root
l/dnf-bug:latest_linux_amd64 => >>> [RPM] group unbound does not exist - using root
l/dnf-bug:latest_linux_amd64 => >>> [RPM] user unbound does not exist - using root
l/dnf-bug:latest_linux_amd64 => [5/6] Installing micro-0:2.0.15-1.fc42. 100% | 327.0 MiB/s | 13.1 MiB | 00m00s
l/dnf-bug:latest_linux_amd64 => [6/6] Installing starship-0:1.24.2-1.fc 100% | 78.2 MiB/s | 11.6 MiB | 00m00s
l/dnf-bug:latest_linux_amd64 => Complete!
l/dnf-bug:latest_linux_amd64 => =============================== End 'dnf' Module ===============================
```
**Output of `bluebuild --version`:**
```
➜ bluebuild --version
BlueBuild 0.9.35
tag:v0.9.35
commit_hash:6fc443c6
build_time:2026-03-30 21:31:47 +00:00
build_env:rustc 1.94.1 (e408947bf 2026-03-25),
```
**Output of `podman version`:**
```
➜ podman version
Client: Podman Engine
Version: 5.8.1
API Version: 5.8.1
Go Version: go1.25.7 X:nodwarf5
Git Commit: c6077f645788743258a1a749f8005b4fb3cbe533
Built: Wed Mar 11 01:00:00 2026
Build Origin: Fedora Project
OS/Arch: linux/amd64
```
0 条评论