Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-36098

dnf installs a second kernel when used on an ostree/bootc system

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • rhel-9.4
    • dnf-plugins-core
    • None
    • Minor
    • sst_cs_software_management
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • 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

      1. # 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
      1. virt-install   --name bootc9.4  --memory 2048   --vcpus 2   --disk disk.qcow2   --import   --os-variant rhel9-unknown 
      1. [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

            packaging-team-maint packaging-team-maint
            rhn-support-jcastran John Castranio
            packaging-team-maint packaging-team-maint
            Software Management QE Software Management QE
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: