ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
1ff636
From 50a7827f7376d31d2af2dc563fc51d8ad71f48dc Mon Sep 17 00:00:00 2001
1ff636
From: Lukas Nykryn <lnykryn@redhat.com>
1ff636
Date: Wed, 20 May 2015 12:34:18 +0200
1ff636
Subject: [PATCH] rules: load sg module
1ff636
1ff636
Revert of 09637f743414e2c36d6c5b032d77d76dbeb86b31
1ff636
RHEL-only
1ff636
1ff636
Resolves: #1186462
1ff636
---
1ff636
 rules/40-redhat.rules | 3 +++
1ff636
 1 file changed, 3 insertions(+)
1ff636
1ff636
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
1ff636
index 556a3a3..305e752 100644
1ff636
--- a/rules/40-redhat.rules
1ff636
+++ b/rules/40-redhat.rules
1ff636
@@ -8,3 +8,6 @@ SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline", ATTR{state}="online"
1ff636
 
1ff636
 # reload sysctl.conf / sysctl.conf.d settings when the bridge module is loaded
1ff636
 ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge"
1ff636
+
1ff636
+# load SCSI generic (sg) driver
1ff636
+SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv sg"