From 4ca5b1d2a5ff71df05d41025df56f72207df302c Mon Sep 17 00:00:00 2001 From: phamt Date: Tue, 17 Aug 2010 20:57:18 +0000 Subject: [PATCH] Handle case where the Linux distro copied is sles[xxx]sp[yyy], where xxx is the version and yyy is the service pack. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7114 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/zvm.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/zvm.pm b/xCAT-server/lib/xcat/plugins/zvm.pm index d42987da7..4cb7669d6 100644 --- a/xCAT-server/lib/xcat/plugins/zvm.pm +++ b/xCAT-server/lib/xcat/plugins/zvm.pm @@ -2836,7 +2836,12 @@ sub nodeSet { } # Get node OS base - my @tmp = split( /\./, $os ); + my @tmp; + if ( $os =~ m/sp/i ) { + @tmp = split( /sp/, $os ); + } else { + @tmp = split( /\./, $os ); + } my $osBase = $tmp[0]; # Get autoyast/kickstart template @@ -3102,7 +3107,7 @@ sub nodeSet { $parms = $parms . "Install=ftp://$ftp/$os/s390x/1/\n"; $parms = $parms . "UseVNC=1 VNCPassword=12345678\n"; $parms = $parms . "InstNetDev=$instNetDev OsaInterface=$osaInterface OsaMedium=$osaMedium Manual=0\n"; - + # Write to parmfile $parmFile = "/tmp/" . $node . "Parm"; open( PARMFILE, ">$parmFile" );