We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make nvidia
[1/2] STEP 12/12: RUN if [ "${KERNEL_VERSION}" == "" ]; then NEWER_KERNEL_CORE=$(dnf info kernel-core | awk -F: '/^Source/{gsub(/.src.rpm/, "", $2); print $2}' | sort -n | tail -n1) && RELEASE=$(dnf info ${NEWER_KERNEL_CORE} | awk -F: '/^Release/{print $2}' | tr -d '[:blank:]') && VERSION=$(dnf info ${NEWER_KERNEL_CORE} | awk -F: '/^Version/{print $2}' | tr -d '[:blank:]') && export KERNEL_VERSION="${VERSION}-${RELEASE}" ; fi && if [ "${OS_VERSION_MAJOR}" == "" ]; then . /etc/os-release && export OS_ID="$(echo ${ID})" && export OS_VERSION_MAJOR="$(echo ${VERSION} | cut -d'.' -f 1)" ; fi && if [ "${BUILD_ARCH}" == "" ]; then export BUILD_ARCH=$(arch) && export TARGET_ARCH=$(echo "${BUILD_ARCH}" | sed 's/+64k//') ; fi && export KVER=$(echo ${KERNEL_VERSION} | cut -d '-' -f 1) && KREL=$(echo ${KERNEL_VERSION} | cut -d '-' -f 2 | sed 's/\.el._*.*\..\+$//' | cut -d'.' -f 1) && if [ "${OS_ID}" == "rhel" ]; then KDIST="."$(echo ${KERNEL_VERSION} | cut -d '-' -f 2 | cut -d '.' -f 2-) ; else KDIST="."$(echo ${KERNEL_VERSION} | cut -d '-' -f 2 | sed 's/^.*\(\.el._*.*\)\..\+$/\1/' | cut -d'.' -f 2) ; fi && DRIVER_STREAM=$(echo ${DRIVER_VERSION} | cut -d '.' -f 1) && git clone --depth 1 --single-branch -b rhel${OS_VERSION_MAJOR} https://github.com/NVIDIA/yum-packaging-precompiled-kmod && cd yum-packaging-precompiled-kmod && mkdir BUILD BUILDROOT RPMS SRPMS SOURCES SPECS && mkdir nvidia-kmod-${DRIVER_VERSION}-${BUILD_ARCH} && curl -sLOf ${BASE_URL}/${DRIVER_VERSION}/NVIDIA-Linux-${TARGET_ARCH}-${DRIVER_VERSION}.run && sh ./NVIDIA-Linux-${TARGET_ARCH}-${DRIVER_VERSION}.run --extract-only --target tmp && mv tmp/kernel-open nvidia-kmod-${DRIVER_VERSION}-${BUILD_ARCH}/kernel && tar -cJf SOURCES/nvidia-kmod-${DRIVER_VERSION}-${BUILD_ARCH}.tar.xz nvidia-kmod-${DRIVER_VERSION}-${BUILD_ARCH} && mv kmod-nvidia.spec SPECS/ && openssl req -x509 -new -nodes -utf8 -sha256 -days 36500 -batch -config ${HOME}/x509-configuration.ini -outform DER -out SOURCES/public_key.der -keyout SOURCES/private_key.priv && rpmbuild --define "% _arch ${BUILD_ARCH}" --define "%_topdir $(pwd)" --define "debug_package %{nil}" --define "kernel ${KVER}" --define "kernel_release ${KREL}" --define "kernel_dist ${KDIST}" --define "driver ${DRIVER_VERSION}" --define "driver_branch ${DRIVER_STREAM}" -v -bb SPECS/kmod-nvidia.spec Traceback (most recent call last): File "/usr/bin/dnf", line 61, in <module> from dnf.cli import main ModuleNotFoundError: No module named 'dnf' Traceback (most recent call last): File "/usr/bin/dnf", line 61, in <module> from dnf.cli import main ModuleNotFoundError: No module named 'dnf' Traceback (most recent call last): File "/usr/bin/dnf", line 61, in <module> from dnf.cli import main ModuleNotFoundError: No module named 'dnf' /bin/sh: line 1: /etc/os-release: Permission denied Error: building at STEP "RUN if [ "${KERNEL_VERSION}" == "" ]; then NEWER_KERNEL_CORE=$(dnf info kernel-core | awk -F: '/^Source/{gsub(/.src.rpm/, "", $2); print $2}' | sort -n | tail -n1) && RELEASE=$(dnf info ${NEWER_KERNEL_CORE} | awk -F: '/^Release/{print $2}' | tr -d '[:blank:]') && VERSION=$(dnf info ${NEWER_KERNEL_CORE} | awk -F: '/^Version/{print $2}' | tr -d '[:blank:]') && export KERNEL_VERSION="${VERSION}-${RELEASE}" ; fi && if [ "${OS_VERSION_MAJOR}" == "" ]; then . /etc/os-release && export OS_ID="$(echo ${ID})" && export OS_VERSION_MAJOR="$(echo ${VERSION} | cut -d'.' -f 1)" ; fi && if [ "${BUILD_ARCH}" == "" ]; then export BUILD_ARCH=$(arch) && export TARGET_ARCH=$(echo "${BUILD_ARCH}" | sed 's/+64k//') ; fi && export KVER=$(echo ${KERNEL_VERSION} | cut -d '-' -f 1) && KREL=$(echo ${KERNEL_VERSION} | cut -d '-' -f 2 | sed 's/\.el._*.*\..\+$//' | cut -d'.' -f 1) && if [ "${OS_ID}" == "rhel" ]; then KDIST="."$(echo ${KERNEL_VERSION} | cut -d '-' -f 2 | cut -d '.' -f 2-) ; elseKDIST="."$(echo ${KERNEL_VERSION} | cut -d '-' -f 2 | sed 's/^.*\(\.el._*.*\)\..\+$/\1/' | cut -d'.' -f 2) ; fi && DRIVER_STREAM=$(echo ${DRIVER_VERSION} | cut -d '.' -f 1) && git clone --depth 1 --single-branch -b rhel${OS_VERSION_MAJOR} https://github.com/NVIDIA/yum-packaging-precompiled-kmod && cd yum-packaging-precompiled-kmod && mkdir BUILD BUILDROOT RPMS SRPMS SOURCES SPECS && mkdir nvidia-kmod-${DRIVER_VERSION}-${BUILD_ARCH} && curl -sLOf ${BASE_URL}/${DRIVER_VERSION}/NVIDIA-Linux-${TARGET_ARCH}-${DRIVER_VERSION}.run && sh ./NVIDIA-Linux-${TARGET_ARCH}-${DRIVER_VERSION}.run --extract-only --target tmp && mv tmp/kernel-open nvidia-kmod-${DRIVER_VERSION}-${BUILD_ARCH}/kernel && tar -cJf SOURCES/nvidia-kmod-${DRIVER_VERSION}-${BUILD_ARCH}.tar.xz nvidia-kmod-${DRIVER_VERSION}-${BUILD_ARCH} && mv kmod-nvidia.spec SPECS/ && openssl req -x509 -new -nodes -utf8 -sha256 -days 36500 -batch -config ${HOME}/x509-configuration.ini -outform DER -out SOURCES/public_key.der -keyout SOURCES/private_key.priv && rpmbuild --define "% _arch ${BUILD_ARCH}" --define "%_topdir $(pwd)" --define "debug_package %{nil}" --define "kernel ${KVER}" --define "kernel_release ${KREL}" --define "kernel_dist ${KDIST}" --define "driver ${DRIVER_VERSION}" --define "driver_branch ${DRIVER_STREAM}" -v -bb SPECS/kmod-nvidia.spec": while running runtime: exit status 1
I am following the steps as given here. Wondering if anyone ran into this lately? Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am following the steps as given here. Wondering if anyone ran into this lately? Thanks!
The text was updated successfully, but these errors were encountered: