diff --git a/xCAT-server/lib/xcat/plugins/zvm.pm b/xCAT-server/lib/xcat/plugins/zvm.pm index 623032d76..e35c29f50 100644 --- a/xCAT-server/lib/xcat/plugins/zvm.pm +++ b/xCAT-server/lib/xcat/plugins/zvm.pm @@ -5122,6 +5122,11 @@ sub nodeSet { while (length($device) < 4) { $device = "0" . $device; } + + # zFCP variables must be in lower-case or AutoYast would get confused + $device = lc($device); + $wwpn = lc($wwpn); + $lun = lc($lun); # Find tag in template and attach SCSI device associated with it $out = `sed --in-place -e "s#$tag#/dev/disk/by-path/ccw-0.0.$device-zfcp-0x$wwpn:0x$lun#i" $customTmpl`; @@ -5362,6 +5367,11 @@ END $device = "0" . $device; } + # zFCP variables must be in lower-case or AutoYast would get confused. + $device = lc($device); + $wwpn = lc($wwpn); + $lun = lc($lun); + # Create zfcp section $zfcpSection = "zfcp --devnum 0.0.$device --wwpn 0x$wwpn --fcplun 0x$lun" . '\n'; diff --git a/xCAT-server/share/xcat/install/sles/zfcp.sles10.s390x.tmpl b/xCAT-server/share/xcat/install/sles/zfcp.sles10.s390x.tmpl index d48ac620b..071980b7a 100644 --- a/xCAT-server/share/xcat/install/sles/zfcp.sles10.s390x.tmpl +++ b/xCAT-server/share/xcat/install/sles/zfcp.sles10.s390x.tmpl @@ -1,6 +1,7 @@ - + + false @@ -292,7 +293,18 @@ replace_root_device + true + + true + swap + true + swap + path + 130 + 1 + auto + true ext3 @@ -300,25 +312,14 @@ / path 131 - 1 + 2 max - - true - swap - true - swap - path - 131 - 1 - primary - auto - all - + false @@ -369,7 +370,7 @@ replace_software_packages - + diff --git a/xCAT-server/share/xcat/install/sles/zfcp.sles11.s390x.tmpl b/xCAT-server/share/xcat/install/sles/zfcp.sles11.s390x.tmpl index c0c9a9d6e..071980b7a 100644 --- a/xCAT-server/share/xcat/install/sles/zfcp.sles11.s390x.tmpl +++ b/xCAT-server/share/xcat/install/sles/zfcp.sles11.s390x.tmpl @@ -1,7 +1,7 @@ - + false @@ -293,7 +293,18 @@ replace_root_device + true + + true + swap + true + swap + path + 130 + 1 + auto + true ext3 @@ -301,24 +312,14 @@ / path 131 - 1 + 2 max - - true - swap - true - swap - path - 131 - 1 - primary - auto - all + false