3a8223
From 6616132de5ec2991e0b55eca6e9d12e50f7be293 Mon Sep 17 00:00:00 2001
3a8223
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
3a8223
Date: Fri, 8 Nov 2019 10:53:41 +0700
3a8223
Subject: [PATCH] multipath: require kpartx binary
3a8223
3a8223
multipath requires kpartx to activate device mapper.
3a8223
But kpartx is only a recommend dependency.
3a8223
3a8223
Check for kpartx's existent first.
3a8223
3a8223
Signed-off-by: Doan Tran Cong Danh <congdanhqx@gmail.com>
3a8223
(cherry picked from commit cf31ed2ae687d9898cafc11ec6e4f478e806ad38)
3a8223
3a8223
Resolves: #1888779
3a8223
---
3a8223
 modules.d/90multipath/module-setup.sh | 1 +
3a8223
 1 file changed, 1 insertion(+)
3a8223
3a8223
diff --git a/modules.d/90multipath/module-setup.sh b/modules.d/90multipath/module-setup.sh
3a8223
index f825c00c..2b9a3166 100755
3a8223
--- a/modules.d/90multipath/module-setup.sh
3a8223
+++ b/modules.d/90multipath/module-setup.sh
3a8223
@@ -29,6 +29,7 @@ check() {
3a8223
 
3a8223
     # if there's no multipath binary, no go.
3a8223
     require_binaries multipath || return 1
3a8223
+    require_binaries kpartx || return 1
3a8223
 
3a8223
     return 0
3a8223
 }
3a8223