anitazha / rpms / systemd

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