diff --git a/perl-xCAT-2.0/xCAT/Utils.pm b/perl-xCAT-2.0/xCAT/Utils.pm index 48397a9df..d2cf5d107 100644 --- a/perl-xCAT-2.0/xCAT/Utils.pm +++ b/perl-xCAT-2.0/xCAT/Utils.pm @@ -1726,6 +1726,10 @@ sub create_postscripts_tar { my ($class) = @_; my $cmd; + if (!(-e "/install/autoinst")) { + mkdir ("/install/autoinst"); + } + $cmd="cd /install/postscripts;tar -cjf /install/autoinst/xcatpost.tar.bz2 * .ssh/*"; my @result = xCAT::Utils->runcmd($cmd, 0); if ($::RUNCMD_RC != 0)