Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Problem with building an image of RHEL 10.2 containing firewalld

    Posted on

    Hello everyone,
    I am struggling with building an image of RHEL used with bootc (image mode).
    I am trying to build a simple image using containerfile:

    FROM registry.redhat.io/rhel10/rhel-bootc:latest
    
    RUN dnf install -y firewalld && \
        dnf -y clean all
    
    RUN systemctl enable firewalld.service
    
    RUN bootc container lint
    

    I use podman for building images and the virtual machine used for building images is on RHEL 10.2. This exact containerfile worked until early July. After some change I am not able to pinpoint it fails with the error:

    error: Linting: Unexpected runtime error running lint kernel: Found multiple subdirectories in usr/lib/modules
    Error: building at STEP "RUN bootc container lint": while running runtime: exit status 1
    

    What am I doing wrong?
    Thanks, Martin

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat