From b4b5e0b6aa6e5810db1a84348bfd81bb7e4e817d Mon Sep 17 00:00:00 2001 From: Steffen Maier Date: Fri, 12 May 2023 15:53:34 +0200 Subject: [PATCH] zdev/dracut: produce helpful user information on parsing rd.zfcp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It builds on the previously added helper function in parse-dasd.sh, which gets sourced first by dracut so the function is also available to the later parsing hook parse-zfcp.sh. Github-ID: https://github.com/ibm-s390-linux/s390-tools/pull/158 Acked-by: Vineeth Vijayan Acked-by: Peter Oberparleiter Signed-off-by: Steffen Maier Signed-off-by: Jan Höppner --- zdev/dracut/95zdev/parse-zfcp.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zdev/dracut/95zdev/parse-zfcp.sh b/zdev/dracut/95zdev/parse-zfcp.sh index b6c02b47..715aa009 100644 --- a/zdev/dracut/95zdev/parse-zfcp.sh +++ b/zdev/dracut/95zdev/parse-zfcp.sh @@ -10,7 +10,7 @@ # parameters are evaluated and used to configure zfcp devices. # -zdev_zfcp_base_args="--no-settle --yes --quiet --no-root-update --force" +zdev_zfcp_base_args="--no-settle --yes --no-root-update --force" for zdev_zfcp_arg in $(getargs rd.zfcp -d 'rd_ZFCP='); do ( @@ -20,14 +20,15 @@ for zdev_zfcp_arg in $(getargs rd.zfcp -d 'rd_ZFCP='); do set -- $zdev_zfcp_arg IFS=":" args="$*" IFS="$IFS_SAVED" + echo "rd.zfcp ${zdev_zfcp_arg} :" | zdev_vinfo if [ "$#" -eq 1 ]; then # shellcheck disable=SC2086 chzdev --enable --persistent $zdev_zfcp_base_args \ - zfcp-host "$args" + zfcp-host "$args" 2>&1 | zdev_vinfo else # shellcheck disable=SC2086 chzdev --enable --persistent $zdev_zfcp_base_args \ - zfcp-lun "$args" + zfcp-lun "$args" 2>&1 | zdev_vinfo fi ) done