2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-17 20:00:19 +00:00

back to original for xdsh non-root support

This commit is contained in:
baiyuan
2014-07-08 02:46:27 -04:00
parent a2d182ca9a
commit 26ac0c0eec

View File

@ -59,12 +59,6 @@ sub addKernelParms {
# replace <nodename> 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>/$nodename/g;
# get node ip and add it to the kernel parms
my ($nic, $ip, $netmask, $network, $broadcast, $gateway, $mac) = getNodeIpInfo($args);