Skip to content

Commit 1241366

Browse files
author
Kyle Krueger
committed
extend suggested nvidia-drivers list
1 parent b24aeeb commit 1241366

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

ZFS-root.conf.example

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,12 @@ XFCE=n
152152

153153
# If you have Nvidia video HW and you *know* which version of driver you want
154154
# it can be preset here. Leaving undefined will cause the script to prompt.
155-
# The package installed will be : nvidia-driver-${NVIDIA}
155+
# The package installed will be : nvidia-${NVIDIA}
156156
#
157157
# none for no driver
158-
# 390 or 470 for legacy driver
159-
# 550 for current latest, or whatever version you prefer
158+
# driver-390 or driver-470 for legacy driver
159+
# driver-580 for current latest, or whatever version you prefer
160+
# such as driver-580-open or headless-580-open
160161
NVIDIA=none
161162

162163
# If installing Sound Open Firmware binaries (mostly for laptops) choose

ZFS-root.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -561,11 +561,15 @@ query_nvidia() {
561561
# Installing Nvidia PPA here just so we can search for versions
562562
apt-add-repository --yes --update ppa:graphics-drivers/ppa
563563
NVIDIA_LATEST=$(apt-cache search nvidia-driver- | cut -d ' ' -f1 | grep -e "nvidia-driver-...$" | cut -d'-' -f3 | sort | tail -1)
564-
NVIDIA=$(whiptail --title "Nvidia Hardware detected - install latest driver ?" --radiolist "Gnome/KDE/NEON was selected, and Nvidia graphics HW was detected on this system. The ppa:graphics-drivers/ppa repo could be installed in order to get the binary Nvidia driver\n\nNOTE: Be sure to select the correct driver - the latest (${NVIDIA_LATEST}) may not support older legacy HW. See\n\nhttps://www.nvidia.com/en-us/drivers/unix/legacy-gpu/\n\nfor more information on legacy HW. It is safe to select NONE if you are unsure. You can always install the appropriate driver later via Additional Drivers" 22 70 4 \
565-
${NVIDIA_LATEST} "Latest ${NVIDIA_LATEST}" OFF \
566-
470 "Legacy 470 driver" OFF \
567-
390 "Legacy 390 driver" OFF \
568-
none "No Nvidia driver" ON \
564+
NVIDIA=$(whiptail --title "Nvidia Hardware detected - install latest driver ?" --radiolist "Gnome/KDE/NEON was selected, and Nvidia graphics HW was detected on this system. The ppa:graphics-drivers/ppa repo could be installed in order to get the binary Nvidia driver\n\nNOTE: Be sure to select the correct driver - the latest (${NVIDIA_LATEST}) may not support older legacy HW. See\n\nhttps://www.nvidia.com/en-us/drivers/unix/legacy-gpu/\n\nfor more information on legacy HW. It is safe to select NONE if you are unsure. You can always install the appropriate driver later via Additional Drivers" 22 70 9 \
565+
driver-${NVIDIA_LATEST} "Latest ${NVIDIA_LATEST}" OFF \
566+
driver-580-open "Open 580 driver" OFF \
567+
headless-580-open "Open 580 driver (headless)" OFF \
568+
driver-580 "Closed 580 driver" OFF \
569+
headless-580 "Closed 580 driver (headless)" OFF \
570+
driver-470 "Legacy 470 driver" OFF \
571+
driver-390 "Legacy 390 driver" OFF \
572+
none "No Nvidia driver" ON \
569573
3>&1 1>&2 2>&3)
570574
RET=${?}
571575
[[ ${RET} = 1 ]] && exit 1
@@ -3305,7 +3309,7 @@ cat >> ${ZFSBUILD}/root/Setup.sh << '__EOF__'
33053309
# The NVIDIA var should be set to the appropriate version from the menu query
33063310
if [ "${NVIDIA}" != "none" ] ; then
33073311
apt-add-repository --yes --update ppa:graphics-drivers/ppa
3308-
apt-get -qq --yes install nvidia-driver-${NVIDIA} libxnvctrl0
3312+
apt-get -qq --yes install nvidia-${NVIDIA} libxnvctrl0
33093313
fi
33103314

33113315
####

0 commit comments

Comments
 (0)