daandemeyer / rpms / systemd

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