From 55d8f0fb61a5fd6a93536c787691864473cb7083 Mon Sep 17 00:00:00 2001 From: linggao Date: Wed, 15 Apr 2009 21:03:56 +0000 Subject: [PATCH] fixed nodeset for sles11/ppc that did not created yaboot.conf-mac symbolic link for netboot case git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3200 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/yaboot.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/yaboot.pm b/xCAT-server/lib/xcat/plugins/yaboot.pm index 45adc76a5..8ae2d5895 100644 --- a/xCAT-server/lib/xcat/plugins/yaboot.pm +++ b/xCAT-server/lib/xcat/plugins/yaboot.pm @@ -159,19 +159,19 @@ sub setstate { my @mac_substr = split /\:/, $machash{$node}->[0]->{mac}; my $sles11_special_link = sprintf("yaboot.conf-%s-%s-%s-%s-%s-%s", @mac_substr); unlink($tftpdir."/etc/".$pname); - if ( $kern->{'kernel'} =~ /sles11\/ppc64\/inst64$/) #special case for sles 11 + if ( $kern->{'kernel'} =~ /sles11\/ppc64\//) #special case for sles 11 { - unlink($tftpdir . $sles11_special_link); + unlink($tftpdir . "/" . $sles11_special_link); } if ($hassymlink) { symlink($node,$tftpdir."/etc/".$pname); - if ( $kern->{'kernel'} =~ /sles11\/ppc64\/inst64$/) #special case for sles 11 + if ( $kern->{'kernel'} =~ /sles11\/ppc64\//) #special case for sles 11 { symlink($tftpdir."/etc/".$node, $tftpdir . '/' . $sles11_special_link); } } else { link($tftpdir."/etc/".$node,$tftpdir."/etc/".$pname); - if ( $kern->{'kernel'} =~ /sles11\/ppc64\/inst64$/) #special case for sles 11 + if ( $kern->{'kernel'} =~ /sles11\/ppc64\//) #special case for sles 11 { link($tftpdir."/etc/".$node, $tftpdir . '/' . $sles11_special_link); }