From 73b28fabc900c6ff3721d04adbeee3407167b3f7 Mon Sep 17 00:00:00 2001 From: vietchinh <1348151+vietchinh@users.noreply.github.com> Date: Thu, 9 Nov 2023 23:26:52 +0100 Subject: [PATCH] fix: use the kernel version as devel for vgpu --- config/scripts/vgpu.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/scripts/vgpu.sh b/config/scripts/vgpu.sh index 7df6e851a1..c4e3b64f63 100755 --- a/config/scripts/vgpu.sh +++ b/config/scripts/vgpu.sh @@ -8,7 +8,8 @@ cd /tmp NVIDIA_VERSION="535.104" ZIP_NAME="NVIDIA-GRID-Linux-KVM-${NVIDIA_VERSION}.06-535.104.05-537.13.zip" -DEVELOPMENT_PACKAGES="wget p7zip p7zip-plugins mscompress osslsigncode git kernel-devel unzip patch vulkan-loader" +KERNEL_VERSION="$(rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" +DEVELOPMENT_PACKAGES="wget p7zip p7zip-plugins mscompress osslsigncode git kernel-devel-${KERNEL_VERSION} unzip patch vulkan-loader" rpm-ostree install "https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm" "https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm" "https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-$(rpm -E %fedora)-1.noarch.rpm" # shellcheck disable=SC2086 @@ -32,8 +33,6 @@ chmod +x patch.sh ./patch.sh general-merge -KERNEL_VERSION="$(rpm -q kernel-devel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" - ./NVIDIA-Linux-x86_64-535.104.05-merged-vgpu-kvm-patched/nvidia-installer -s --kernel-source-path /usr/src/kernels/"${KERNEL_VERSION}" --no-systemd --dkms cd ..