From 26ac0c0eec8f15d459890df384c6eabbe7a32eeb Mon Sep 17 00:00:00 2001 From: baiyuan Date: Tue, 8 Jul 2014 02:46:27 -0400 Subject: [PATCH] back to original for xdsh non-root support --- xCAT-SoftLayer/bin/modifygrub | 6 ------ 1 file changed, 6 deletions(-) diff --git a/xCAT-SoftLayer/bin/modifygrub b/xCAT-SoftLayer/bin/modifygrub index 3b567b423..967509477 100755 --- a/xCAT-SoftLayer/bin/modifygrub +++ b/xCAT-SoftLayer/bin/modifygrub @@ -59,12 +59,6 @@ sub addKernelParms { # replace with the nodename my $nodename = $ENV{NODE}; # this env var is set by xdsh - if (!$nodename){ - my $tmpstr=$args->{kernelparms}; - my @strhost=split(' ',$tmpstr); - my @tempname=split('=',$strhost[7]); - $nodename=$tempname[1]; - } $args->{kernelparms} =~ s//$nodename/g; # get node ip and add it to the kernel parms my ($nic, $ip, $netmask, $network, $broadcast, $gateway, $mac) = getNodeIpInfo($args);