Skip to content

Commit

Permalink
Versionlock 5.14.0-362.24.1.el9_3
Browse files Browse the repository at this point in the history
  • Loading branch information
sjjamsa authored and Aalto Scientific Computing committed May 20, 2024
1 parent 829ac14 commit 7c3b785
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions rhel-9/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@ FROM registry.access.redhat.com/ubi9/ubi:9.3
##COPY subscription/entitlement/* /etc/pki/entitlement
##RUN rm -f /etc/rhsm-host && rm -f /etc/pki/entitlement-host


#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.*

dnf install \
python3-dnf-plugin-versionlock
dnf versionlock \
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.*


# this imitates a server groupinstall
RUN dnf update -y \
&& dnf install -y --allowerasing \
Expand Down

0 comments on commit 7c3b785

Please sign in to comment.