-Try to avoid chance of a file being written instead of directory on esxi netboot

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8949 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-03-01 15:36:09 +00:00
parent 4656cc9ddb
commit 9b5e97a927

View File

@ -3827,7 +3827,6 @@ sub mknetboot {
xCAT::SvrUtils::sendmsg([1,"Please run copycds first for $osver or create custom image in $custprofpath/"], $output_handler);
}
mkpath("$tftpdir/xcat/netboot/$osver/$arch/");
my @reqmods = qw/vmkboot.gz vmk.gz sys.vgz cim.vgz/; #Required modules for an image to be considered complete
my %mods;
foreach (@reqmods) {
@ -3836,6 +3835,7 @@ sub mknetboot {
my $shortprofname = $profile;
$shortprofname =~ s/\/\z//;
$shortprofname =~ s/.*\///;
mkpath("$tftpdir/xcat/netboot/$osver/$arch/$shortprofname/");
unless($donetftp{$osver,$arch}) {
my $srcdir = "$installroot/$osver/$arch";
my $dest = "$tftpdir/xcat/netboot/$osver/$arch/$shortprofname";