daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
923a60
From 33d6abe2452c8222b926f917171d65ed934d0136 Mon Sep 17 00:00:00 2001
923a60
From: Lukas Nykryn <lnykryn@redhat.com>
923a60
Date: Tue, 11 Apr 2017 15:15:00 +0200
923a60
Subject: [PATCH] rules/40-redhat.rules: rules should be on one line
923a60
923a60
rhel-only
923a60
Related: #1274401
923a60
---
923a60
 rules/40-redhat.rules | 8 ++------
923a60
 1 file changed, 2 insertions(+), 6 deletions(-)
923a60
923a60
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
923a60
index c928d412b7..34a1df9c48 100644
923a60
--- a/rules/40-redhat.rules
923a60
+++ b/rules/40-redhat.rules
923a60
@@ -29,14 +29,10 @@ ACTION=="remove", GOTO="zfcp_scsi_device_end"
923a60
 KERNEL=="sd*", SUBSYSTEMS=="ccw", DRIVERS=="zfcp", ENV{.ID_ZFCP_BUS}="1"
923a60
 
923a60
 # For SCSI disks
923a60
-KERNEL=="sd*[!0-9]", SUBSYSTEMS=="scsi",
923a60
-        ENV{.ID_ZFCP_BUS}=="1", ENV{DEVTYPE}=="disk",
923a60
-        SYMLINK+="disk/by-path/ccw-$attr{hba_id}-zfcp-$attr{wwpn}:$attr{fcp_lun}"
923a60
+KERNEL=="sd*[!0-9]", SUBSYSTEMS=="scsi", ENV{.ID_ZFCP_BUS}=="1", ENV{DEVTYPE}=="disk", SYMLINK+="disk/by-path/ccw-$attr{hba_id}-zfcp-$attr{wwpn}:$attr{fcp_lun}"
923a60
 
923a60
 
923a60
 # For partitions on a SCSI disk
923a60
-KERNEL=="sd*[0-9]", SUBSYSTEMS=="scsi",
923a60
-        ENV{.ID_ZFCP_BUS}=="1", ENV{DEVTYPE}=="partition",
923a60
-        SYMLINK+="disk/by-path/ccw-$attr{hba_id}-zfcp-$attr{wwpn}:$attr{fcp_lun}-part%n"
923a60
+KERNEL=="sd*[0-9]", SUBSYSTEMS=="scsi", ENV{.ID_ZFCP_BUS}=="1", ENV{DEVTYPE}=="partition", SYMLINK+="disk/by-path/ccw-$attr{hba_id}-zfcp-$attr{wwpn}:$attr{fcp_lun}-part%n"
923a60
 
923a60
 LABEL="zfcp_scsi_device_end"