/oldroot nvidia fix

If you are an nvidia user you might have seen an error when shuting down your linux system, here is the fix.

Create and edit /usr/lib/systemd/system-shutdown/nvidia.shutdown with next content and make it executable.

#!/bin/sh
# remove nvidia modules
/usr/bin/modprobe -r nvidia_drm nvidia_modeset nvidia_uvm && /usr/bin/modprobe -r nvidia

Revision #1
Created 26 January 2024 18:14:34 by CronyAkatsuki
Updated 26 January 2024 18:16:11 by CronyAkatsuki