teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

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

cb2855
From 6d5b6bff86bca5db72a859330a29783fc5676935 Mon Sep 17 00:00:00 2001
cb2855
From: Lukas Nykryn <lnykryn@redhat.com>
cb2855
Date: Thu, 21 May 2015 09:23:04 +0200
cb2855
Subject: [PATCH] rules: load sg module
cb2855
cb2855
Revert of 09637f743414e2c36d6c5b032d77d76dbeb86b31
cb2855
RHEL-only
cb2855
cb2855
Resolves: #1223340
cb2855
---
cb2855
 rules/40-redhat.rules | 3 +++
cb2855
 1 file changed, 3 insertions(+)
cb2855
cb2855
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
cb2855
index 2b494e5..b14f8a9 100644
cb2855
--- a/rules/40-redhat.rules
cb2855
+++ b/rules/40-redhat.rules
cb2855
@@ -1,3 +1,6 @@
cb2855
 # do not edit this file, it will be overwritten on update
cb2855
 
cb2855
 SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
cb2855
+
cb2855
+# load SCSI generic (sg) driver
cb2855
+SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv sg"