From 679b4216faabdf085faeb5a3ff6d2b6b7a787939 Mon Sep 17 00:00:00 2001 From: Dave Young Date: Tue, 28 Aug 2012 11:02:42 +0800 Subject: [PATCH] iscsi setup fix Original host_fs_types could only contain one iscsi slave, This is due to the check_block_and_slaves will return once the helper function return TRUE, so only one slave with fs type will be added to host_fs_types[] Thus, there will no chance to setup other slaves in kdump iscsi setup routine. Use for_each_host_dev_and_slaves_all to setup all slaves. Tested by chaowang and myself. Signed-off-by: Dave Young Acked-by: Vivek Goyal --- dracut-module-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index 9fe9f71..d531720 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -321,7 +321,7 @@ kdump_check_iscsi_targets () { kdump_check_setup_iscsi() ( local _dev - _dev=$(get_maj_min $1) + _dev=$1 [[ -L /sys/dev/block/$_dev ]] || return cd "$(readlink -f /sys/dev/block/$_dev)" @@ -332,7 +332,7 @@ kdump_check_iscsi_targets () { ) [[ $hostonly ]] || [[ $mount_needs ]] && { - for_each_host_dev_fs kdump_check_setup_iscsi + for_each_host_dev_and_slaves_all kdump_check_setup_iscsi } }