diff options
author | Harald Hoyer <harald@redhat.com> | 2013-07-31 17:28:04 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-07-31 17:29:12 +0200 |
commit | 64a7eace88b30f3ea03df86ddceb23d4949b692d (patch) | |
tree | 6a113589bcad310a3e36f9426b0c3929210d9842 /modules.d | |
parent | 051de5aadcd8cf1638fb86b89916f7184b30991a (diff) | |
download | dracut-64a7eace88b30f3ea03df86ddceb23d4949b692d.tar.gz dracut-64a7eace88b30f3ea03df86ddceb23d4949b692d.tar.bz2 dracut-64a7eace88b30f3ea03df86ddceb23d4949b692d.zip |
cms/cmssetup.sh: correct port for zfcp.conf
Diffstat (limited to 'modules.d')
-rwxr-xr-x | modules.d/80cms/cmssetup.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/modules.d/80cms/cmssetup.sh b/modules.d/80cms/cmssetup.sh index 16704c34..36955bc3 100755 --- a/modules.d/80cms/cmssetup.sh +++ b/modules.d/80cms/cmssetup.sh @@ -182,7 +182,19 @@ function dasd_settle_all() { unset _do_zfcp for i in ${!FCP_*}; do - echo "${!i}" >> /etc/zfcp.conf + echo "${!i}" | while read port rest; do + case $port in + *.*.*) + ;; + *.*) + port="0.$port" + ;; + *) + port="0.0.$port" + ;; + esac + echo $port $rest >> /etc/zfcp.conf + done _do_zfcp=1 done [[ $_do_zfcp ]] && zfcp_cio_free |