From 9b5e97a92732a2e1f521a683ce97f5f9a07fdf79 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 1 Mar 2011 15:36:09 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/esx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 7deac9a67..24a05a0a5 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -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";