multipath-tools/0013-kpartx-change-kpartx-file-and-default-bindir.patch

43 lines
1.2 KiB
Diff
Raw Permalink Normal View History

2024-02-05 16:52:45 +08:00
From 686e2fcd742037d3c5a9830fc89638b5e862242a Mon Sep 17 00:00:00 2001
2020-01-10 17:13:17 +08:00
From: wangjufeng <wangjufeng@huawei.com>
Date: Fri, 10 Jan 2020 11:57:08 +0800
2024-02-05 16:52:45 +08:00
Subject: [PATCH] kpartx: change kpartx file and default bindir
2020-01-10 17:13:17 +08:00
Change default bindir of multipath to /usr/sbin. Don't
set device name-partition number delimiter in kpartx rules.
Signed-off-by: wangjufeng <wangjufeng@huawei.com>
---
Makefile.inc | 2 +-
kpartx/kpartx.rules | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.inc b/Makefile.inc
2024-02-05 16:52:45 +08:00
index 2e25d2e..f17fa63 100644
2020-01-10 17:13:17 +08:00
--- a/Makefile.inc
+++ b/Makefile.inc
2024-02-05 16:52:45 +08:00
@@ -34,7 +34,7 @@ endif
# 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)
usr_prefix := $(prefix)
# Where to install systemd-related files. systemd is usually installed under /usr
2020-01-10 17:13:17 +08:00
diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules
2024-02-05 16:52:45 +08:00
index 1969dee..d2b2823 100644
2020-01-10 17:13:17 +08:00
--- a/kpartx/kpartx.rules
+++ b/kpartx/kpartx.rules
2024-02-05 16:52:45 +08:00
@@ -39,6 +39,6 @@ LABEL="mpath_kpartx_end"
2020-01-10 17:13:17 +08:00
GOTO="kpartx_end"
LABEL="run_kpartx"
-RUN+="/sbin/kpartx -un -p -part /dev/$name"
+RUN+="/sbin/kpartx -un /dev/$name"
LABEL="kpartx_end"
--
2024-02-05 16:52:45 +08:00
2.33.0
2020-01-10 17:13:17 +08:00