]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmraid: 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)
dmraid 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/90dmraid/module-setup.sh

index 797a58e59883ddfa664ba03bfd48f07d52058e22..8038899af525ca3aaa4c4f7642a52d4026c534cb 100755 (executable)
@@ -6,6 +6,7 @@ check() {
     # if we don't have dmraid installed on the host system, no point
     # in trying to support it in the initramfs.
     require_binaries dmraid || return 1
+    require_binaries kpartx || return 1
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
         for dev in "${!host_fs_types[@]}"; do