We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f94d115 commit e731af0Copy full SHA for e731af0
templates/al2023/provisioners/install-nvidia-driver.sh
@@ -82,10 +82,14 @@ sudo dnf -y install \
82
kernel-headers-$(uname -r) \
83
kernel-modules-extra-common-$(uname -r)
84
85
-# Install dkms dependency from amazonlinux
+# Install dkms dependency from amazonlinux repo
86
sudo dnf -y install patch
87
# Install dkms from the cuda repo
88
+if is-isolated-partition; then
89
sudo dnf -y --disablerepo="*" --enablerepo="cuda*" install dkms
90
+else
91
+ sudo dnf -y --disablerepo="*" --enablerepo="cuda*" install dkms
92
+fi
93
94
function archive-open-kmods() {
95
echo "Archiving open kmods"
0 commit comments