Skip to content

Commit fc48151

Browse files
Shiva Kumarshivakunv
authored andcommitted
Add support for rhel10.0 and rhel10.1
Signed-off-by: Shiva Kumar (SW-CLOUD) <shivaku@nvidia.com>
1 parent 6e35a8e commit fc48151

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

centos8/nvidia-driver

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,17 @@ _install_prerequisites() (
4444
trap "rm -rf ${tmp_dir}" EXIT
4545
cd ${tmp_dir}
4646

47+
echo "Updating package metadata..."
48+
dnf makecache --refresh -q -y --releasever=10.0 || true
49+
4750
echo "Installing elfutils..."
48-
dnf install -q -y elfutils-libelf.x86_64 elfutils-libelf-devel.x86_64
51+
dnf install -q -y --releasever=10.0 elfutils-libelf.x86_64 elfutils-libelf-devel.x86_64
4952

5053
rm -rf /lib/modules/${KERNEL_VERSION}
5154
mkdir -p /lib/modules/${KERNEL_VERSION}/proc
5255

5356
echo "Installing Linux kernel headers..."
54-
dnf -q -y install kernel-headers-${KERNEL_VERSION} kernel-devel-${KERNEL_VERSION} > /dev/null
57+
dnf -q -y --releasever=10.0 install kernel-headers-${KERNEL_VERSION} kernel-devel-${KERNEL_VERSION} > /dev/null
5558
ln -s /usr/src/kernels/${KERNEL_VERSION} /lib/modules/${KERNEL_VERSION}/build
5659

5760
echo "Installing Linux kernel module files..."

0 commit comments

Comments
 (0)