anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0012-rules-load-sg-driver-also-when-scsi_target-appears-4.patch

36e8a3
From fab2dff96f59e0851884b4ef32dccab763f5eef1 Mon Sep 17 00:00:00 2001
36e8a3
From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Nykr=C3=BDn?= <lnykryn@redhat.com>
36e8a3
Date: Thu, 18 Aug 2016 14:51:19 +0200
36e8a3
Subject: [PATCH] rules: load sg driver also when scsi_target appears (#45)
36e8a3
36e8a3
Related: #1523227
36e8a3
---
36e8a3
 rules/40-redhat.rules | 1 +
36e8a3
 1 file changed, 1 insertion(+)
36e8a3
36e8a3
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
4bff0a
index 9a48adde19..3335fe5075 100644
36e8a3
--- a/rules/40-redhat.rules
36e8a3
+++ b/rules/40-redhat.rules
36e8a3
@@ -11,6 +11,7 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/sys
36e8a3
 
36e8a3
 # load SCSI generic (sg) driver
36e8a3
 SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv sg"
36e8a3
+SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_target", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv sg"
36e8a3
 
36e8a3
 # Rule for prandom character device node permissions
36e8a3
 KERNEL=="prandom", MODE="0644"