Added network drivers for s390x. Change nodeset command for zVM to handle the new name of initrd-statelite.gz.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7743 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2010-10-04 16:12:34 +00:00
parent 2c35493c52
commit f143dae32f
3 changed files with 9 additions and 8 deletions

View File

@ -3391,8 +3391,8 @@ sub nodeSet {
# Netboot directory
my $netbootDir = "$installDir/netboot/$os/$arch/$profile";
my $kernelFile = "$netbootDir/kernel";
my $parmFile = "$netbootDir/parm";
my $initFile = "$netbootDir/initrd.gz";
my $parmFile = "$netbootDir/parm-statelite";
my $initFile = "$netbootDir/initrd-statelite.gz";
# If parmfile exists
if ( -e $parmFile ) {
@ -3461,8 +3461,8 @@ sub nodeSet {
# Temporary kernel, parmfile, and initrd
my $tmpKernelFile = "/tmp/$os-kernel";
my $tmpParmFile = "/tmp/$os-parm";
my $tmpInitFile = "/tmp/$os-initrd.gz";
my $tmpParmFile = "/tmp/$os-parm-statelite";
my $tmpInitFile = "/tmp/$os-initrd-statelite.gz";
if (`ssh -o ConnectTimeout=5 $hcp "ls /tmp" | grep "$os-kernel"`) {
@ -3474,7 +3474,7 @@ sub nodeSet {
xCAT::zvmUtils->sendFile( $hcp, $kernelFile, $tmpKernelFile );
}
if (`ssh -o ConnectTimeout=5 $hcp "ls /tmp" | grep "$os-parm"`) {
if (`ssh -o ConnectTimeout=5 $hcp "ls /tmp" | grep "$os-parm-statelite"`) {
# Do nothing
}
@ -3484,7 +3484,7 @@ sub nodeSet {
xCAT::zvmUtils->sendFile( $hcp, $parmFile, $tmpParmFile );
}
if (`ssh -o ConnectTimeout=5 $hcp "ls /tmp" | grep "$os-initrd.gz"`) {
if (`ssh -o ConnectTimeout=5 $hcp "ls /tmp" | grep "$os-initrd-statelite.gz"`) {
# Do nothing
}

View File

@ -265,8 +265,9 @@ if ($netdriver) {
@ndrivers = qw/tg3 bnx2 bnx2x e1000 e1000e igb mlx_en/;
} elsif ($arch eq 'ppc64') {
@ndrivers = qw/e1000 e1000e igb ibmveth ehea/;
} elsif ($arch eq 's390x') {
@ndrivers = qw/qdio ccwgroup/;
}
# TODO: need to set the default network drivers for s390x ?
}
foreach (split /,/,$netdriver) {
unless (/\.ko$/) {

View File

@ -261,7 +261,7 @@ if ($netdriver) {
} elsif ($arch eq 'ppc64') {
@ndrivers = qw/e1000 e1000e igb ibmveth ehea/;
} elsif ($arch eq "s390x") {
# TODO: put the default network drviers for s390x here
@ndrivers = qw/qdio ccwgroup qeth qeth_l2 qeth_l3/;
}
}