From 84292d8b872182635199bec26beb9c01de5cb7da Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 9 Apr 2009 13:21:02 +0000 Subject: [PATCH] -Only call mknb during startup for architectures supported by service node in AAsn git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3155 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/AAsn.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index bad7339f6..794d5a750 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -940,13 +940,14 @@ sub setup_TFTP #first, run mknb to get nbfs and such going? my $cmdref; use xCAT_plugin::mknb; - $cmdref->{command}->[0] = "mknb"; - $cmdref->{arg}->[0] = "ppc64"; - $doreq->($cmdref,\&xCAT::Client::handle_response); - $cmdref->{arg}->[0] = "x86"; - $doreq->($cmdref,\&xCAT::Client::handle_response); - $cmdref->{arg}->[0] = "x86_64"; - $doreq->($cmdref,\&xCAT::Client::handle_response); + for my $architecture ("ppc64","x86","x86_64") { + unless (-d "$::XCATROOT/share/xcat/netboot/$archictecture") { + next; + } + $cmdref->{command}->[0] = "mknb"; + $cmdref->{arg}->[0] = $architecture; + $doreq->($cmdref,\&xCAT::Client::handle_response); + } #now, run nodeset enact on my $mactab = xCAT::Table->new('mac'); my $hmtab = xCAT::Table->new('noderes');