summaryrefslogtreecommitdiff
path: root/modules.d/80cms
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-07-31 17:28:04 +0200
committerHarald Hoyer <harald@redhat.com>2013-07-31 17:29:12 +0200
commit64a7eace88b30f3ea03df86ddceb23d4949b692d (patch)
tree6a113589bcad310a3e36f9426b0c3929210d9842 /modules.d/80cms
parent051de5aadcd8cf1638fb86b89916f7184b30991a (diff)
downloaddracut-64a7eace88b30f3ea03df86ddceb23d4949b692d.tar.gz
dracut-64a7eace88b30f3ea03df86ddceb23d4949b692d.tar.bz2
dracut-64a7eace88b30f3ea03df86ddceb23d4949b692d.zip
cms/cmssetup.sh: correct port for zfcp.conf
Diffstat (limited to 'modules.d/80cms')
-rwxr-xr-xmodules.d/80cms/cmssetup.sh14
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