Skip to content

Commit

Permalink
feat(KONFLUX-3933): Use rpm to get the value faster
Browse files Browse the repository at this point in the history
  • Loading branch information
jhutar committed Aug 5, 2024
1 parent 701564e commit c30133f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions training/nvidia-bootc/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ WORKDIR /home/builder
COPY --chown=1001:0 x509-configuration.ini x509-configuration.ini

RUN if [ "${KERNEL_VERSION}" == "" ]; then \
RELEASE=$(dnf info --installed kernel-core | awk -F: '/^Release/{print $2}' | tr -d '[:blank:]') \
&& VERSION=$(dnf info --installed kernel-core | awk -F: '/^Version/{print $2}' | tr -d '[:blank:]') \
RELEASE=$(rpm -q kernel-core --qf="%{RELEASE}") \
&& VERSION=$(rpm -q kernel-core --qf="%{VERSION}") \
&& export KERNEL_VERSION="${VERSION}-${RELEASE}" ;\
fi \
&& if [ "${OS_VERSION_MAJOR}" == "" ]; then \
Expand Down

0 comments on commit c30133f

Please sign in to comment.