Blame SOURCES/0011-RH-fixup-udev-rules-for-redhat.patch

b7ef27
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
b7ef27
From: Benjamin Marzinski <bmarzins@redhat.com>
b7ef27
Date: Thu, 13 Apr 2017 07:22:23 -0500
b7ef27
Subject: [PATCH] RH: fixup udev rules for redhat
b7ef27
b7ef27
The multipath rules need to run after scsi_id is run. This means moving
b7ef27
them after 60-persistent-storage.rules for redhat. Redhat also uses a
b7ef27
different naming scheme for partitions than SuSE.
b7ef27
b7ef27
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
b7ef27
---
b7ef27
 Makefile.inc        | 2 +-
b7ef27
 kpartx/kpartx.rules | 2 +-
b7ef27
 multipath/Makefile  | 4 ++--
b7ef27
 3 files changed, 4 insertions(+), 4 deletions(-)
b7ef27
b7ef27
diff --git a/Makefile.inc b/Makefile.inc
49190a
index 9060ac9b..034752d9 100644
b7ef27
--- a/Makefile.inc
b7ef27
+++ b/Makefile.inc
b6d9ac
@@ -53,7 +53,7 @@ endif
b7ef27
 prefix		=
b7ef27
 exec_prefix	= $(prefix)
b7ef27
 usr_prefix	= $(prefix)
b7ef27
-bindir		= $(exec_prefix)/sbin
b7ef27
+bindir		= $(exec_prefix)/usr/sbin
b7ef27
 libudevdir	= $(prefix)/$(SYSTEMDPATH)/udev
b7ef27
 udevrulesdir	= $(libudevdir)/rules.d
b7ef27
 multipathdir	= $(TOPDIR)/libmultipath
b7ef27
diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules
b6d9ac
index 8f990494..8a3a1718 100644
b7ef27
--- a/kpartx/kpartx.rules
b7ef27
+++ b/kpartx/kpartx.rules
b7ef27
@@ -32,6 +32,6 @@ LABEL="mpath_kpartx_end"
b7ef27
 GOTO="kpartx_end"
b7ef27
 
b7ef27
 LABEL="run_kpartx"
b7ef27
-RUN+="/sbin/kpartx -un -p -part /dev/$name"
b7ef27
+RUN+="/sbin/kpartx -un /dev/$name"
b7ef27
 
b7ef27
 LABEL="kpartx_end"
b7ef27
diff --git a/multipath/Makefile b/multipath/Makefile
b6d9ac
index 0828a8f7..b9bbb3cf 100644
b7ef27
--- a/multipath/Makefile
b7ef27
+++ b/multipath/Makefile
b7ef27
@@ -24,7 +24,7 @@ install:
b7ef27
 	$(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/
b7ef27
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(udevrulesdir)
b7ef27
 	$(INSTALL_PROGRAM) -m 644 11-dm-mpath.rules $(DESTDIR)$(udevrulesdir)
b7ef27
-	$(INSTALL_PROGRAM) -m 644 $(EXEC).rules $(DESTDIR)$(libudevdir)/rules.d/56-multipath.rules
b7ef27
+	$(INSTALL_PROGRAM) -m 644 $(EXEC).rules $(DESTDIR)$(libudevdir)/rules.d/62-multipath.rules
b7ef27
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(man8dir)
b7ef27
 	$(INSTALL_PROGRAM) -m 644 $(EXEC).8.gz $(DESTDIR)$(man8dir)
b7ef27
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(man5dir)
b7ef27
@@ -33,7 +33,7 @@ install:
b7ef27
 uninstall:
b7ef27
 	$(RM) $(DESTDIR)$(bindir)/$(EXEC)
b7ef27
 	$(RM) $(DESTDIR)$(udevrulesdir)/11-dm-mpath.rules
b7ef27
-	$(RM) $(DESTDIR)$(libudevdir)/rules.d/56-multipath.rules
b7ef27
+	$(RM) $(DESTDIR)$(libudevdir)/rules.d/62-multipath.rules
b7ef27
 	$(RM) $(DESTDIR)$(man8dir)/$(EXEC).8.gz
b7ef27
 	$(RM) $(DESTDIR)$(man5dir)/$(EXEC).conf.5.gz
b7ef27
 
b7ef27
-- 
b7ef27
2.17.2
b7ef27