From: Harald Hoyer Date: Thu, 7 Mar 2013 15:00:00 +0000 (+0100) Subject: crypt, dmraid, mdraid: use for_each_host_dev_and_slaves_all() X-Git-Tag: 026~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf24ac8c19b803e6f5c0576f2d7e78187331cf02;p=thirdparty%2Fdracut.git crypt, dmraid, mdraid: use for_each_host_dev_and_slaves_all() To catch _all_ UUIDs and not only the first one, use for_each_host_dev_and_slaves_all --- diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh index 93b996cd8..2b4456bf6 100755 --- a/modules.d/90crypt/module-setup.sh +++ b/modules.d/90crypt/module-setup.sh @@ -25,7 +25,7 @@ check() { } [[ $hostonly ]] || [[ $mount_needs ]] && { - for_each_host_dev_fs check_crypt || return 1 + for_each_host_dev_and_slaves_all check_crypt || return 1 } return 0 diff --git a/modules.d/90dmraid/module-setup.sh b/modules.d/90dmraid/module-setup.sh index eb949dc27..c315961b1 100755 --- a/modules.d/90dmraid/module-setup.sh +++ b/modules.d/90dmraid/module-setup.sh @@ -38,7 +38,7 @@ check() { } [[ $hostonly ]] || [[ $mount_needs ]] && { - for_each_host_dev_fs check_dmraid || return 1 + for_each_host_dev_and_slaves_all check_dmraid || return 1 } return 0 diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh index a2b9ac2a9..0efffbb80 100755 --- a/modules.d/90mdraid/module-setup.sh +++ b/modules.d/90mdraid/module-setup.sh @@ -27,7 +27,7 @@ check() { } [[ $hostonly ]] || [[ $mount_needs ]] && { - for_each_host_dev_fs check_mdraid || return 1 + for_each_host_dev_and_slaves_all check_mdraid || return 1 } return 0