From 2fae43d52e253ca316075a044a32e5d94afbf7a9 Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 28 Jun 2012 04:11:39 +0000 Subject: [PATCH] fix defect ID: 3537687 BOOTIF is not written into yaboot file on sles11.2 for ppc64 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13186 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/sles.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index bbd2b509c..59c8c720b 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -477,13 +477,11 @@ sub mknetboot my $netdev = ""; my $mac = $machash->{$node}->[0]->{mac}; - if ($reshash->{$node}->[0] and $reshash->{$node}->[0]->{installnic}) { - if ($reshash->{$node}->[0]->{installnic} ne "mac") { + if ($reshash->{$node}->[0] and $reshash->{$node}->[0]->{installnic} and ($reshash->{$node}->[0]->{installnic} ne "mac")) { $kcmdline .= "netdev=" . $reshash->{$node}->[0]->{installnic} . " "; - } } elsif ($nodebootif) { $kcmdline .= "netdev=" . $nodebootif . " "; - } elsif ($reshash->{$node}->[0] and $reshash->{$node}->[0]->{primarynic}) { + } elsif ($reshash->{$node}->[0] and $reshash->{$node}->[0]->{primarynic} and ($reshash->{$node}->[0]->{primarynic} ne "mac")) { $kcmdline .= "netdev=" . $reshash->{$node}->[0]->{primarynic} . " "; } else { if ($arch =~ /x86/) {