From 776b2389cacedbd45ff0c5719225b71236526922 Mon Sep 17 00:00:00 2001 From: whoix <151130171+whoix@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:19:25 -0700 Subject: [PATCH] Bug fix for isolated partitons, wrap variable in quotes (#2043) Co-authored-by: Wyatt Hicken --- templates/al2023/provisioners/install-nvidia-driver.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/al2023/provisioners/install-nvidia-driver.sh b/templates/al2023/provisioners/install-nvidia-driver.sh index f6d477c63..f9d75bdaf 100755 --- a/templates/al2023/provisioners/install-nvidia-driver.sh +++ b/templates/al2023/provisioners/install-nvidia-driver.sh @@ -77,7 +77,7 @@ sudo dnf -y install kernel-modules-extra.x86_64 function archive-open-kmods() { if is-isolated-partition; then - sudo dnf -y install kmod-nvidia-open-dkms-${NVIDIA_DRIVER_MAJOR_VERSION}.* + sudo dnf -y install "kmod-nvidia-open-dkms-${NVIDIA_DRIVER_MAJOR_VERSION}.*" else sudo dnf -y module install nvidia-driver:${NVIDIA_DRIVER_MAJOR_VERSION}-open fi @@ -103,7 +103,7 @@ function archive-open-kmods() { function archive-proprietary-kmod() { if is-isolated-partition; then - sudo dnf -y install kmod-nvidia-latest-dkms-${NVIDIA_DRIVER_MAJOR_VERSION}.* + sudo dnf -y install "kmod-nvidia-latest-dkms-${NVIDIA_DRIVER_MAJOR_VERSION}.*" else sudo dnf -y module install nvidia-driver:${NVIDIA_DRIVER_MAJOR_VERSION}-dkms fi