From 99e84ca4d8928874319dc335dc99ad073b188230 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 7 Jun 2010 14:43:18 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/windows.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 286469057..b6c60de16 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -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})