36e8a3
From a42b57dc8b265f183a8fb6fe9ae32a9d77cbb7c5 Mon Sep 17 00:00:00 2001
36e8a3
From: Lukas Nykryn <lnykryn@redhat.com>
36e8a3
Date: Wed, 20 May 2015 12:34:18 +0200
36e8a3
Subject: [PATCH] rules: load sg module
36e8a3
36e8a3
Related: #1523227
36e8a3
---
36e8a3
 rules/40-redhat.rules | 3 +++
36e8a3
 1 file changed, 3 insertions(+)
36e8a3
36e8a3
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
4bff0a
index 556a3a3a90..305e752285 100644
36e8a3
--- a/rules/40-redhat.rules
36e8a3
+++ b/rules/40-redhat.rules
36e8a3
@@ -8,3 +8,6 @@ SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline", ATTR{state}="online"
36e8a3
 
36e8a3
 # reload sysctl.conf / sysctl.conf.d settings when the bridge module is loaded
36e8a3
 ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge"
36e8a3
+
36e8a3
+# load SCSI generic (sg) driver
36e8a3
+SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv sg"