From 03ad33614e786fb1a73d1d91520154582449e7c8 Mon Sep 17 00:00:00 2001 From: nott Date: Mon, 12 Sep 2011 17:58:34 +0000 Subject: [PATCH] fix missing resolv_conf git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10499 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 843d7da9b..3eadf2d77 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -1011,14 +1011,10 @@ sub nimnodeset $arg_string .= "$bnd_string"; } - # see if we have a resolv_conf resource - if ($imagehash{$image_name}{resolv_conf}) - { - # could be from the osimage - } elsif ($resolv_conf_hash{$node}) { - # or could be specific resolv_conf res created locally - $arg_string .= "-a resolv_conf=$resolv_conf_hash{$node}" ; - } + # see if we have a resolv_conf resource + if ($resolv_conf_hash{$node}) { + $arg_string .= "-a resolv_conf=$resolv_conf_hash{$node}" ; + } my $initcmd; $initcmd = "/usr/sbin/nim -o bos_inst $arg_string $nim_name 2>&1"; @@ -8775,13 +8771,7 @@ sub mkdsklsnode } # see if we have a resolv_conf resource - if ($imagehash{$image_name}{resolv_conf}) - { - # could be from the osimage - # $arg_string .= - # "-a resolv_conf=$imagehash{$image_name}{resolv_conf} "; - } elsif ($resolv_conf_hash{$node}) { - # or could be specific resolv_conf res created locally + if ($resolv_conf_hash{$node}) { $arg_string .= " -a resolv_conf=$resolv_conf_hash{$node} " ; }