summarylogtreecommitdiffstats
path: root/0001-Revert-Make-newly-installed-modules-available-immedi.patch
blob: 582fd5ec4ab7b91f03e3738aece2a3f1442d450f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From ca38ccd38c69a096dafa51c426ee3548980d5e2a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= <seblu@seblu.net>
Date: Sat, 8 Jul 2017 15:50:55 +0200
Subject: [PATCH] Revert "Make newly installed modules available immediately"
To: dkms-devel@dell.com

This reverts commit f5bfb12fef1fc06e56355cdba500eaa98d4e6aa8.
---
 dkms | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dkms b/dkms
index a6cedc8..3ff71d5 100644
--- a/dkms
+++ b/dkms
@@ -1522,12 +1522,6 @@ install_module()
             exit 6
     }
 
-    # Make the newly installed modules available immediately
-    find /sys/devices -name modalias -print0 | xargs -0 cat | xargs modprobe -a -b -q
-    if [ -f /lib/systemd/system/systemd-modules-load.service ]; then
-        systemctl restart systemd-modules-load.service
-    fi
-
     # Do remake_initrd things (save old initrd)
     [[ $remake_initrd ]] && ! make_initrd "$kernelver" "$arch" && {
         do_uninstall "$kernelver" "$arch"
-- 
Sébastien "Seblu" Luttringer