From d8ae450ad22dc2e3005ca0c7617568c72d531d3c Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 6 May 2010 20:39:22 +0000 Subject: [PATCH] -Make yaboot-by-mac hack a little less easily broken (still imperfect) git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6003 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/yaboot.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/yaboot.pm b/xCAT-server/lib/xcat/plugins/yaboot.pm index 00ad07a26..917f90a97 100644 --- a/xCAT-server/lib/xcat/plugins/yaboot.pm +++ b/xCAT-server/lib/xcat/plugins/yaboot.pm @@ -162,6 +162,8 @@ sub setstate { my $pname = sprintf("%02x%02x%02x%02x",@ipa); #special case for sles 11 my $mac = lc($machash{$node}->[0]->{mac}); + $mac =~ s/!.*//; + $mac =~ s/|.*//; if (! (grep /\:/, $mac) ) { $mac =~ s/(..)(..)(..)(..)(..)(..)/$1:$2:$3:$4:$5:$6/; }