Have esx.pm preserve the media-based efi boot infrastructure, just in case
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10959 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -57,6 +57,24 @@ my $vmwaresdkdetect = eval { | ||||
| }; | ||||
| my %lockhandles; | ||||
|  | ||||
| sub recursion_copy { | ||||
|         my $source = shift; | ||||
|         my $destination = shift; | ||||
|         my $dirhandle; | ||||
|         opendir($dirhandle,$source); | ||||
|         my $entry; | ||||
|         foreach $entry (readdir($dirhandle)) { | ||||
|                 if ($entry eq '.' or $entry eq '..') { next; } | ||||
|                 my $tempsource = "$source/$entry"; | ||||
|                 my $tempdestination = "$destination/$entry"; | ||||
|                 if ( -d $tempsource ) { | ||||
|                         unless (-d $tempdestination) { mkdir $tempdestination or die "failure creating directory $tempdestination, $!"; } | ||||
|                         recursion_copy($tempsource,$tempdestination); | ||||
|                 } else { | ||||
|                         copy($tempsource,$tempdestination) or die "failed copy from $tempsource to $tempdestination, $!"; | ||||
|                 } | ||||
|         }  | ||||
| }        | ||||
| sub lockbyname { | ||||
| 	my $name = shift; | ||||
| 	my $lckh; | ||||
| @@ -4363,6 +4381,12 @@ sub mkcommonboot { | ||||
| 			    copy("$::XCATROOT/share/xcat/netboot/syslinux/mboot.c32", $dest); | ||||
|             } else { | ||||
| 			    copy("$srcdir/mboot.c32", $dest); | ||||
|             } | ||||
|             if (-f "$srcdir/efiboot.img") { | ||||
| 				copy("$srcdir/efiboot.img",$dest); | ||||
| 				print("$srcdir/efi"); | ||||
|                 mkpath("$dest/efi"); | ||||
| 				recursion_copy("$srcdir/efi","$dest/efi"); | ||||
|             } | ||||
| 			$donetftp{$osver,$arch,$profile} = 1; | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user