crypt, dmraid, mdraid: use for_each_host_dev_and_slaves_all()
authorHarald Hoyer <harald@redhat.com>
Thu, 7 Mar 2013 15:00:00 +0000 (16:00 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 7 Mar 2013 15:00:00 +0000 (16:00 +0100)
To catch _all_ UUIDs and not only the first one, use
for_each_host_dev_and_slaves_all

modules.d/90crypt/module-setup.sh
modules.d/90dmraid/module-setup.sh
modules.d/90mdraid/module-setup.sh

index 93b996c..2b4456b 100755 (executable)
@@ -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
index eb949dc..c315961 100755 (executable)
@@ -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
index a2b9ac2..0efffbb 100755 (executable)
@@ -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