-
Bug
-
Resolution: Duplicate
-
Normal
-
None
-
rhel-9.4
-
None
-
Low
-
rhel-sst-bootc
-
0
-
False
-
-
None
-
None
-
None
What were you trying to do that didn't work?
Building an image with
RUN dnf update --refresh -y
Results in a second kernel installed on the container. This is the converted to bootc and installed as a machine which results in an ostree system with 2 kernels breaking some rpm-ostree functionality.
Please provide the package NVR for which bug is seen:
Steps to reproduce
# cat bootc/config.toml [[blueprint.customizations.user]] name = "user" password = "password" groups = ["wheel"] # podman login registry.redhat.io # cat ContainerFile FROM registry.redhat.io/rhel9/rhel-bootc:9.4 RUN dnf update --refresh -y # podman build -f ContainerFile -t quay.io/redhat_emp1/pickles:bootc # podman push fb2ac78c9d69 quay.io/redhat_emp1/pickles:bootc --remove-signatures # sudo podman run --rm -it --privileged --pull=newer --security-opt label=type:unconfined_t -v ./config.toml:/config.toml -v ./output:/output registry.redhat.io/rhel9/bootc-image-builder:latest --type qcow2 --config /config.toml quay.io/redhat_emp1/pickles:new-kernel
virt-install --name bootc9.4 --memory 2048 --vcpus 2 --disk disk.qcow2 --import --os-variant rhel9-unknown
[root@bootc]# rpm-ostree install tree
Expected results
We shouldn't have 2 kernels on an ostree system.
Actual results
[root@bootc ~]# rpm-ostree install tree Checking out tree cf1fa1c... done Enabled rpm-md repositories: rhel-9-for-x86_64-baseos-rpms rhel-9-for-x86_64-appstream-rpms Importing rpm-md... done rpm-md repo 'rhel-9-for-x86_64-baseos-rpms' (cached); generated: 2024-05-09T13:27:14Z solvables: 7348 rpm-md repo 'rhel-9-for-x86_64-appstream-rpms' (cached); generated: 2024-05-09T19:19:10Z solvables: 21359 Resolving dependencies... done Checking out packages... done Running pre scripts... done Running post scripts... done Running posttrans scripts... done Writing rpmdb... done Writing OSTree commit... done error: Committing: Multiple kernels found in /usr/lib/modules [root@bootc ~]# rpm -q kernel kernel-5.14.0-427.13.1.el9_4.x86_64 kernel-5.14.0-427.16.1.el9_4.x86_64