From 623c9f512a938a894c001dde4dca1731fe920a6d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 20 May 2010 00:16:44 +0000 Subject: [PATCH] -Both send host-name down to client and force server interpretation to be nodename git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6182 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 19eabc60c..406e712cf 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -307,10 +307,10 @@ sub addnode print $omshell "set ip-address = $ip\n"; if ($lstatements) { - $lstatements = 'send host-name \"'.$node.'\";'.$lstatements; + $lstatements = 'option host-name \"'.$node.'\"; send host-name \"'.$node.'\";'.$lstatements; } else { - $lstatements = 'send host-name \"'.$node.'\";'; + $lstatements = 'option host-name \"'.$node.'\"; send host-name \"'.$node.'\";'; } print $omshell "set statements = \"$lstatements\"\n"; }