From 14d851555932d6ca0c7c1aa9df20bf4b5637d127 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 23 May 2012 19:20:38 +0000 Subject: [PATCH] Fix problem where mknb was not satisfied with genesis alone git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12918 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/mknb.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/mknb.pm b/xCAT-server/lib/xcat/plugins/mknb.pm index b623cda5d..d4c6ddc4d 100644 --- a/xCAT-server/lib/xcat/plugins/mknb.pm +++ b/xCAT-server/lib/xcat/plugins/mknb.pm @@ -45,8 +45,8 @@ sub process_request { $callback->({error=>"Need to specify architecture (x86, x86_64 or ppc64)"},{errorcode=>[1]}); return; } - unless (-d "$::XCATROOT/share/xcat/netboot/$arch") { - $callback->({error=>"Unable to find directory $::XCATROOT/share/xcat/netboot/$arch",errorcode=>[1]}); + unless (-d "$::XCATROOT/share/xcat/netboot/$arch" or -d "$::XCATROOT/share/xcat/netboot/genesis/$arch") { + $callback->({error=>"Unable to find directory $::XCATROOT/share/xcat/netboot/$arch or $::XCATROOT/share/xcat/netboot/genesis/$arch",errorcode=>[1]}); return; } unless ( -r "/root/.ssh/id_rsa.pub" ) {