Skip to content

Commit

Permalink
chore: have nvk modprobe setttings
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles committed Apr 13, 2024
1 parent 220f22b commit 67afe94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build_files/shared/initramfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
set -oue pipefail

# Remove nvidia specific files
if [[ ! "${IMAGE_FLAVOR}" =~ "nvidia" ]]; then
if [[ "${IMAGE_FLAVOR}" =~ "nvidia" ]]; then
rm /usr/lib/modprobe.d/nvk.conf
else
rm /usr/lib/dracut/dracut.conf.d/95-nvidia.conf
rm /usr/lib/modprobe.d/nvidia.conf
fi
Expand Down
2 changes: 2 additions & 0 deletions system_files/shared/usr/lib/modprobe.d/nvk.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Enable GSP firmware
options nouveau config=NvGspRm=1

0 comments on commit 67afe94

Please sign in to comment.