diff --git a/rhel-9/Containerfile b/rhel-9/Containerfile index ad33fbf..a98d653 100644 --- a/rhel-9/Containerfile +++ b/rhel-9/Containerfile @@ -9,15 +9,15 @@ FROM registry.access.redhat.com/ubi9/ubi:9.3 #Versionlock the kernel: -dnf install \ - kernel-0:5.14.0-362.24.1.el9_3.* \ - kernel-core-0:5.14.0-362.24.1.el9_3.* \ - kernel-headers-0:5.14.0-362.24.1.el9_3.* \ - kernel-modules-core-0:5.14.0-362.24.1.el9_3.* +RUN dnf install -y \ + kernel-0:5.14.0-362.24.1.el9_3 \ + kernel-core-0:5.14.0-362.24.1.el9_3 \ + kernel-headers-0:5.14.0-362.24.1.el9_3 \ + kernel-modules-core-0:5.14.0-362.24.1.el9_3 -dnf install \ +RUN dnf install -y \ python3-dnf-plugin-versionlock -dnf versionlock \ +RUN dnf versionlock -y \ kernel-0:5.14.0-362.24.1.el9_3.* \ kernel-core-0:5.14.0-362.24.1.el9_3.* \ kernel-headers-0:5.14.0-362.24.1.el9_3.* \