2020-05-30 01:47:35 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2017-11-07 23:51:09 +00:00
|
|
|
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
|
2019-01-31 23:04:52 +00:00
|
|
|
different naming scheme for partitions than SuSE.
|
2017-11-07 23:51:09 +00:00
|
|
|
|
|
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
|
|
---
|
|
|
|
Makefile.inc | 2 +-
|
|
|
|
kpartx/kpartx.rules | 2 +-
|
|
|
|
multipath/Makefile | 4 ++--
|
2019-01-31 23:04:52 +00:00
|
|
|
3 files changed, 4 insertions(+), 4 deletions(-)
|
2017-11-07 23:51:09 +00:00
|
|
|
|
|
|
|
diff --git a/Makefile.inc b/Makefile.inc
|
2021-07-01 20:23:09 +00:00
|
|
|
index 91100a20..6c3714eb 100644
|
2017-11-07 23:51:09 +00:00
|
|
|
--- a/Makefile.inc
|
|
|
|
+++ b/Makefile.inc
|
2021-04-06 03:37:31 +00:00
|
|
|
@@ -55,7 +55,7 @@ endif
|
2017-11-07 23:51:09 +00:00
|
|
|
prefix =
|
|
|
|
exec_prefix = $(prefix)
|
|
|
|
usr_prefix = $(prefix)
|
|
|
|
-bindir = $(exec_prefix)/sbin
|
|
|
|
+bindir = $(exec_prefix)/usr/sbin
|
|
|
|
libudevdir = $(prefix)/$(SYSTEMDPATH)/udev
|
|
|
|
udevrulesdir = $(libudevdir)/rules.d
|
|
|
|
multipathdir = $(TOPDIR)/libmultipath
|
|
|
|
diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules
|
2020-07-09 04:16:57 +00:00
|
|
|
index d7527d7d..0e0d70d5 100644
|
2017-11-07 23:51:09 +00:00
|
|
|
--- a/kpartx/kpartx.rules
|
|
|
|
+++ b/kpartx/kpartx.rules
|
2020-07-09 04:16:57 +00:00
|
|
|
@@ -36,6 +36,6 @@ LABEL="mpath_kpartx_end"
|
2017-11-07 23:51:09 +00:00
|
|
|
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
|
2019-09-11 22:06:10 +00:00
|
|
|
index 0828a8f7..b9bbb3cf 100644
|
2017-11-07 23:51:09 +00:00
|
|
|
--- a/multipath/Makefile
|
|
|
|
+++ b/multipath/Makefile
|
|
|
|
@@ -24,7 +24,7 @@ install:
|
|
|
|
$(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/
|
|
|
|
$(INSTALL_PROGRAM) -d $(DESTDIR)$(udevrulesdir)
|
|
|
|
$(INSTALL_PROGRAM) -m 644 11-dm-mpath.rules $(DESTDIR)$(udevrulesdir)
|
|
|
|
- $(INSTALL_PROGRAM) -m 644 $(EXEC).rules $(DESTDIR)$(libudevdir)/rules.d/56-multipath.rules
|
|
|
|
+ $(INSTALL_PROGRAM) -m 644 $(EXEC).rules $(DESTDIR)$(libudevdir)/rules.d/62-multipath.rules
|
|
|
|
$(INSTALL_PROGRAM) -d $(DESTDIR)$(man8dir)
|
|
|
|
$(INSTALL_PROGRAM) -m 644 $(EXEC).8.gz $(DESTDIR)$(man8dir)
|
|
|
|
$(INSTALL_PROGRAM) -d $(DESTDIR)$(man5dir)
|
|
|
|
@@ -33,7 +33,7 @@ install:
|
|
|
|
uninstall:
|
|
|
|
$(RM) $(DESTDIR)$(bindir)/$(EXEC)
|
|
|
|
$(RM) $(DESTDIR)$(udevrulesdir)/11-dm-mpath.rules
|
|
|
|
- $(RM) $(DESTDIR)$(libudevdir)/rules.d/56-multipath.rules
|
|
|
|
+ $(RM) $(DESTDIR)$(libudevdir)/rules.d/62-multipath.rules
|
|
|
|
$(RM) $(DESTDIR)$(man8dir)/$(EXEC).8.gz
|
|
|
|
$(RM) $(DESTDIR)$(man5dir)/$(EXEC).conf.5.gz
|
|
|
|
|