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})