Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
chore: added cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vietchinh committed Nov 7, 2023
1 parent 6ee037e commit df1e0ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/scripts/vgpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ 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"

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"
rpm-ostree install wget p7zip p7zip-plugins mscompress osslsigncode git kernel-devel unzip patch
rpm-ostree install "${DEVELOPMENT_PACKAGES}" vulkan-loader

git clone --recursive https://github.com/VGPU-Community-Drivers/vGPU-Unlock-patcher.git -b ${NVIDIA_VERSION}

Expand All @@ -35,4 +36,5 @@ KERNEL_VERSION="$(rpm -q kernel-devel --queryformat '%{VERSION}-%{RELEASE}.%{ARC
./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 ..
rm -rf ${VGPU_FOLDER}
rm -rf ${VGPU_FOLDER}
rpm-ostree remove "${DEVELOPMENT_PACKAGES}" "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"

0 comments on commit df1e0ff

Please sign in to comment.