teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0180-rules-load-sg-module.patch

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