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
This commit is contained in:
parent
7fa844ccf1
commit
4ca5b1d2a5
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user