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

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