2022-11-16 20:11:59 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Benjamin Marzinski <bmarzins@redhat.com>
|
|
|
|
Date: Thu, 13 Apr 2017 07:22:23 -0500
|
|
|
|
Subject: [PATCH] RH: fixup udev rules for redhat
|
|
|
|
|
|
|
|
The multipath rules need to run after scsi_id is run. This means moving
|
|
|
|
them after 60-persistent-storage.rules for redhat. Redhat also uses a
|
|
|
|
different naming scheme for partitions than SuSE.
|
|
|
|
|
|
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
|
|
---
|
2023-11-21 21:11:29 +00:00
|
|
|
Makefile.inc | 2 +-
|
2022-11-16 20:11:59 +00:00
|
|
|
kpartx/kpartx.rules | 2 +-
|
|
|
|
multipath/Makefile | 4 ++--
|
2023-11-21 21:11:29 +00:00
|
|
|
3 files changed, 4 insertions(+), 4 deletions(-)
|
2022-11-16 20:11:59 +00:00
|
|
|
|
|
|
|
diff --git a/Makefile.inc b/Makefile.inc
|
2023-11-21 21:11:29 +00:00
|
|
|
index 6b454303..0b0e3ad2 100644
|
2022-11-16 20:11:59 +00:00
|
|
|
--- a/Makefile.inc
|
|
|
|
+++ b/Makefile.inc
|
2023-11-21 21:11:29 +00:00
|
|
|
@@ -34,7 +34,7 @@ endif
|
2022-11-16 20:11:59 +00:00
|
|
|
# Paths. All these can be overridden on the "make" command line.
|
|
|
|
prefix :=
|
|
|
|
# Prefix for binaries
|
|
|
|
-exec_prefix := $(prefix)
|
|
|
|
+exec_prefix := $(prefix)/usr
|
|
|
|
# Prefix for non-essential libraries (libdmmp)
|
2023-11-21 21:11:29 +00:00
|
|
|
usr_prefix := $(if $(prefix),$(prefix),/usr)
|
2023-09-22 20:29:43 +00:00
|
|
|
# Prefix for configfuration files (multipath.conf)
|
2022-11-16 20:11:59 +00:00
|
|
|
diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules
|
|
|
|
index 1969dee0..d2b28233 100644
|
|
|
|
--- a/kpartx/kpartx.rules
|
|
|
|
+++ b/kpartx/kpartx.rules
|
|
|
|
@@ -39,6 +39,6 @@ LABEL="mpath_kpartx_end"
|
|
|
|
GOTO="kpartx_end"
|
|
|
|
|
|
|
|
LABEL="run_kpartx"
|
|
|
|
-RUN+="/sbin/kpartx -un -p -part /dev/$name"
|
|
|
|
+RUN+="/sbin/kpartx -un /dev/$name"
|
|
|
|
|
|
|
|
LABEL="kpartx_end"
|
|
|
|
diff --git a/multipath/Makefile b/multipath/Makefile
|
2023-11-21 21:11:29 +00:00
|
|
|
index 0efb9b26..504d6892 100644
|
2022-11-16 20:11:59 +00:00
|
|
|
--- a/multipath/Makefile
|
|
|
|
+++ b/multipath/Makefile
|
2023-09-22 20:29:43 +00:00
|
|
|
@@ -26,7 +26,7 @@ install:
|
2022-11-16 20:11:59 +00:00
|
|
|
$(Q)$(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/
|
|
|
|
$(Q)$(INSTALL_PROGRAM) -d $(DESTDIR)$(udevrulesdir)
|
|
|
|
$(Q)$(INSTALL_PROGRAM) -m 644 11-dm-mpath.rules $(DESTDIR)$(udevrulesdir)
|
|
|
|
- $(Q)$(INSTALL_PROGRAM) -m 644 multipath.rules $(DESTDIR)$(udevrulesdir)/56-multipath.rules
|
|
|
|
+ $(Q)$(INSTALL_PROGRAM) -m 644 multipath.rules $(DESTDIR)$(udevrulesdir)/62-multipath.rules
|
|
|
|
$(Q)$(INSTALL_PROGRAM) -d $(DESTDIR)$(tmpfilesdir)
|
2023-11-21 21:11:29 +00:00
|
|
|
$(Q)$(INSTALL_PROGRAM) -m 644 tmpfiles.conf $(DESTDIR)$(tmpfilesdir)/multipath.conf
|
|
|
|
$(Q)$(INSTALL_PROGRAM) -d $(DESTDIR)$(mandir)/man8
|
|
|
|
@@ -48,7 +48,7 @@ uninstall:
|
2022-11-16 20:11:59 +00:00
|
|
|
$(Q)$(RM) $(DESTDIR)$(udevrulesdir)/11-dm-mpath.rules
|
|
|
|
$(Q)$(RM) $(DESTDIR)$(modulesloaddir)/multipath.conf
|
|
|
|
$(Q)$(RM) $(DESTDIR)$(modulesloaddir)/scsi_dh.conf
|
|
|
|
- $(Q)$(RM) $(DESTDIR)$(libudevdir)/rules.d/56-multipath.rules
|
|
|
|
+ $(Q)$(RM) $(DESTDIR)$(libudevdir)/rules.d/62-multipath.rules
|
|
|
|
$(Q)$(RM) $(DESTDIR)$(mandir)/man8/$(EXEC).8
|
|
|
|
$(Q)$(RM) $(DESTDIR)$(mandir)/man5/$(EXEC).conf.5
|
2023-09-22 20:29:43 +00:00
|
|
|
$(Q)$(RM) $(DESTDIR)$(tmpfilesdir)/multipath.conf
|