fixed defect #3130 installnic=mac does not work for rh5 ppc64 netboot

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14274 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
immarvin 2012-11-08 08:35:01 +00:00
parent 6842acc9a8
commit 54fea32eb0

View File

@ -633,6 +633,9 @@ sub mknetboot
} elsif ($reshash->{$node}->[0] and $reshash->{$node}->[0]->{primarynic} and $reshash->{$node}->[0]->{primarynic} ne "mac") {
$useifname=1;
$kcmdline .= "ifname=".$reshash->{$node}->[0]->{primarynic}.":";
}elsif($osver =~ /^rhels5/ and $arch=~/^ppc/){
#for rhels5-ppc, is we specify installnic="mac",boot device cannot be found during netboot
$useifname=1;
}
#else { #no, we autodetect and don't presume anything
# $kcmdline .="eth0:";