Fix problem where mknb was not satisfied with genesis alone

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12916 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-05-23 19:19:40 +00:00
parent f729568b58
commit ca8dcb8bf4

View File

@ -53,8 +53,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" ) {