Skip to content

Commit

Permalink
Merge pull request #725 from jhutar/main
Browse files Browse the repository at this point in the history
feat(KONFLUX-3933): Use rpm to get the value
  • Loading branch information
rhatdan authored Aug 6, 2024
2 parents 6662956 + 49181d2 commit 15a3dc8
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 15a3dc8

Please sign in to comment.