summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-drm/services/s3-activate-nvidia-drivers.service
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/slx-drm/services/s3-activate-nvidia-drivers.service')
-rw-r--r--modules.d/slx-drm/services/s3-activate-nvidia-drivers.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules.d/slx-drm/services/s3-activate-nvidia-drivers.service b/modules.d/slx-drm/services/s3-activate-nvidia-drivers.service
new file mode 100644
index 00000000..4ea86525
--- /dev/null
+++ b/modules.d/slx-drm/services/s3-activate-nvidia-drivers.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Enable loading of nVidia drivers if a suitable GPU is found
+Requires=dracut-cmdline.service
+After=dracut-cmdline.service
+Before=dracut-pre-udev.service
+Wants=dracut-pre-udev.service
+DefaultDependencies=no
+IgnoreOnIsolate=true
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+ExecStart=/usr/local/bin/s3-activate-nvidia-drivers.sh