]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
multipath: require kpartx binary
authorDoan Tran Cong Danh <congdanhqx@gmail.com>
Fri, 8 Nov 2019 03:53:41 +0000 (10:53 +0700)
committerDaniel Molkentin <daniel@molkentin.de>
Sun, 10 Nov 2019 00:47:30 +0000 (01:47 +0100)
multipath requires kpartx to activate device mapper.
But kpartx is only a recommend dependency.

Check for kpartx's existent first.

Signed-off-by: Doan Tran Cong Danh <congdanhqx@gmail.com>
modules.d/90multipath/module-setup.sh

index 1f6a55ec3706f8ae43fef52e313be8c00255e5c8..f449052c7b6d393ced063504a15fcbfd470cf014 100755 (executable)
@@ -29,6 +29,7 @@ check() {
 
     # if there's no multipath binary, no go.
     require_binaries multipath || return 1
+    require_binaries kpartx || return 1
 
     return 0
 }