summaryrefslogtreecommitdiffstats
path: root/liveinit.tpl
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-04-30 22:26:40 +0200
committer Eric Hameleers <alien@slackware.com>2020-04-30 22:26:40 +0200
commit66fbed66d8a37591dee95e815e374f026286c16c (patch)
treebd979b2fb6d2b2adc1285007bd7bdf3c39d68882 /liveinit.tpl
parente6adb8a98209552ed81a095a0d13f7afa73112a9 (diff)
downloadliveslak-66fbed66d8a37591dee95e815e374f026286c16c.tar.gz
liveslak-66fbed66d8a37591dee95e815e374f026286c16c.tar.xz
Make "load=nvidia" work
Using a squashfs module created from nvidia-kernel and nvidia-driver packages. A sample script for creating this nvidia module was added to liveslak, see: ./contrib/scripts/makemod_nvidia. These two packages were created using the scripts from slackbuilds.org: https://slackbuilds.org/repository/14.2/system/nvidia-kernel/ https://slackbuilds.org/repository/14.2/system/nvidia-driver/ Note that the nvidia-driver package was created on a multilib system so that it could pick up 32bit compat libraries (needed for Steam among others), and the CURRENT variable was set to 'yes' so that the nvidia drivers are fully separated from mesa and xorg-server and do not overwrite system libraries: # COMPAT32="yes" CURRENT="yes" ./nvidia-driver.SlackBuild
Diffstat (limited to '')
-rw-r--r--liveinit.tpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/liveinit.tpl b/liveinit.tpl
index 6b15131..223927e 100644
--- a/liveinit.tpl
+++ b/liveinit.tpl
@@ -825,6 +825,14 @@ if [ "$RESCUE" = "" ]; then
load_modules addons
# And finally any explicitly requested optionals (like nvidia drivers):
+ ## TODO:
+ ## Automatically load the nvidia driver if we find a supported GPU:
+ # NVPCIID=$(lspci -nn|grep NVIDIA|grep VGA|rev|cut -d'[' -f1|rev|cut -d']' -f1|tr -d ':'|tr [a-z] [A-Z])
+ # if cat /mnt/media/${LIVEMAIN}/optional/nvidia-*xx.ids |grep -wq $NVPCIID ;
+ # then
+ # LOAD="nvidia,${LOAD}"
+ # fi
+ ## END TODO:
# Remember, module name must adhere to convention: "NNNN-modname-*.sxz"
# where 'N' is a digit and 'modname' must not contain a dash '-'.
load_modules optional