summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfaaris2022-05-29 22:51:29 +0100
committerfaaris2022-05-29 22:51:29 +0100
commit005b4b707fe6d7441794ca10456025106cb0620b (patch)
treece8afd9bade641223a8039ab2e3bcc352ee5f28d
parent5a99ef65b894e6be93ba0c22ffe37362a5b94f9d (diff)
downloadaur-005b4b707fe6d7441794ca10456025106cb0620b.tar.gz
fix script
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--nvidia-modprobe.service9
3 files changed, 8 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ae1c2f966b9d..21863df8f32e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = nvidia-modprobe-service
pkgdesc = Fixes /oldroot unmount issues by unloading nvidia modules before shutdown / reboot.
pkgver = 1
- pkgrel = 9
+ pkgrel = 10
url = https://github.com/Fxzzi/nvidia-modprobe-service
install = notes.install
arch = any
@@ -9,7 +9,7 @@ pkgbase = nvidia-modprobe-service
depends = systemd
source = nvidia-modprobe.service
source = notes.install
- sha256sums = 7986dbe15228e4a04ac60bbfe7efadce0407395b50a28056acfede9317cbc04d
+ sha256sums = 1895e120c20c841187a743916a71f9957e5da519e45f12565266fa5370b71beb
sha256sums = c105f4a328491f31984d767bc15042122d4de59cca4c3d46fbd7712004053982
pkgname = nvidia-modprobe-service
diff --git a/PKGBUILD b/PKGBUILD
index 22de1d969a74..2747eccae1f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=nvidia-modprobe-service
pkgver=1
-pkgrel=9
+pkgrel=10
pkgdesc="Fixes /oldroot unmount issues by unloading nvidia modules before shutdown / reboot."
arch=('any')
license=('GPL')
@@ -13,7 +13,7 @@ url="https://github.com/Fxzzi/nvidia-modprobe-service"
source=('nvidia-modprobe.service'
'notes.install')
-sha256sums=('7986dbe15228e4a04ac60bbfe7efadce0407395b50a28056acfede9317cbc04d'
+sha256sums=('1895e120c20c841187a743916a71f9957e5da519e45f12565266fa5370b71beb'
'c105f4a328491f31984d767bc15042122d4de59cca4c3d46fbd7712004053982')
diff --git a/nvidia-modprobe.service b/nvidia-modprobe.service
index e4ac7186933f..46feda07af18 100644
--- a/nvidia-modprobe.service
+++ b/nvidia-modprobe.service
@@ -1,11 +1,10 @@
[Unit]
-Description=Pre-Shutdown Processes
-DefaultDependencies=no
-Before=shutdown.target reboot.target halt.target
+Description=Ditch nvidia after multi-user.target
[Service]
Type=oneshot
-ExecStart=/usr/bin/modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia
+RemainAfterExit=true
+ExecStop=/usr/bin/modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia
[Install]
-WantedBy=halt.target reboot.target shutdown.target
+WantedBy=multi-user.target