Skip to content

Commit

Permalink
fix: stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanAbd committed Jul 18, 2024
1 parent a331524 commit 6bb0b4e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions sysbox-eks.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -368,30 +368,31 @@ build {
inline_shebang = "/usr/bin/env bash"
inline = [
"echo '>>> Downloading NVIDIA Kernel Module Source'",
"wget https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/530.41.03.tar.gz",
"tar -xvf 530.41.03.tar.gz",
"rm 530.41.03.tar.gz"
"wget https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/530.30.02.tar.gz",
"tar -xvf 530.30.02.tar.gz",
"rm 530.30.02.tar.gz"
]
}

provisioner "file" {
source = "open-gpu-kernel-modules-530.41.03.patch"
destination = "/home/ubuntu/open-gpu-kernel-modules-530.41.03.patch"
source = "open-gpu-kernel-modules-530.30.02.patch"
destination = "/home/ubuntu/open-gpu-kernel-modules-530.30.02.patch"
}

provisioner "shell" {
inline_shebang = "/usr/bin/env bash"
inline = [
"echo '>>> Patching NVIDIA Kernel Module Source'",
"sudo patch -p0 < /home/ubuntu/open-gpu-kernel-modules-530.41.03.patch",
"rm /home/ubuntu/open-gpu-kernel-modules-530.41.03.patch",
"sudo patch -p0 < /home/ubuntu/open-gpu-kernel-modules-530.30.02.patch",
"rm /home/ubuntu/open-gpu-kernel-modules-530.30.02.patch",

"echo '>>> Building NVIDIA Kernel Module Source'",
"cd open-gpu-kernel-modules-530.41.03",
"cd open-gpu-kernel-modules-530.30.02",
"sudo make modules -j$(nproc)",
"sudo make modules_install -j$(nproc)",

"sudo rm -rf open-gpu-kernel-modules-530.41.03"
"sudo rm -rf open-gpu-kernel-modules-530.30.02",
"sudo depmod -A"
]
}

Expand Down

0 comments on commit 6bb0b4e

Please sign in to comment.