mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdev/dracut: produce helpful user information on parsing rd.zfcp
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 <vneethv@linux.ibm.com> Acked-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Steffen Maier <maier@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
9927023680
commit
b4b5e0b6aa
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user