-Create autoinst directory if required

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6365 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-06-07 14:43:18 +00:00
parent bc4993d32a
commit 99e84ca4d8

View File

@ -74,6 +74,9 @@ sub mkimage {
my $ostab = xCAT::Table->new('nodetype');
my $oshash = $ostab->getNodesAttribs(\@nodes,['profile','arch']);
my $shandle;
unless (-d "$installroot/autoinst") {
mkpath "$installroot/autoinst";
}
foreach $node (@nodes) {
$ent = $oshash->{$node}->[0];
unless ($ent->{arch} and $ent->{profile})