mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	-Fix defect where pxe netboot would not work if pxelinux.cfg was not pre-created
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5641 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -4,6 +4,7 @@ use Data::Dumper;
 | 
			
		||||
use Sys::Syslog;
 | 
			
		||||
use Socket;
 | 
			
		||||
use File::Copy;
 | 
			
		||||
use File::Path;
 | 
			
		||||
use Getopt::Long;
 | 
			
		||||
 | 
			
		||||
my $addkcmdlinehandled;
 | 
			
		||||
@@ -133,6 +134,10 @@ sub setstate {
 | 
			
		||||
      $kern->{kcmdline} =~ s/!myipfn!/$ipfn/g;
 | 
			
		||||
  }
 | 
			
		||||
  my $pcfg;
 | 
			
		||||
  unless (-d $tftpdir."/pxelinux.cfg/") {
 | 
			
		||||
      mkpath($tftpdir."/pxelinux.cfg/");
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  open($pcfg,'>',$tftpdir."/pxelinux.cfg/".$node);
 | 
			
		||||
  my $cref=$chainhash{$node}->[0]; #$chaintab->getNodeAttribs($node,['currstate']);
 | 
			
		||||
  if ($cref->{currstate}) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user