We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f94d115 commit 63baa33Copy full SHA for 63baa33
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
-sudo dnf -y --disablerepo="*" --enablerepo="cuda*" install dkms
+if is-isolated-partition; then
+ sudo dnf -y install dkms
89
+else
90
+ # Install dkms from the cuda repo
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