-Create yaboot server config directory on nodeset if non-existant
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@661 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -3,6 +3,7 @@ package xCAT_plugin::yaboot;
 | 
			
		||||
use Data::Dumper;
 | 
			
		||||
use Sys::Syslog;
 | 
			
		||||
use xCAT::Scope;
 | 
			
		||||
use File::Path;
 | 
			
		||||
use Socket;
 | 
			
		||||
 | 
			
		||||
my $request;
 | 
			
		||||
@@ -65,6 +66,9 @@ sub setstate {
 | 
			
		||||
  my $restab = xCAT::Table->new('noderes');
 | 
			
		||||
  my $kern = $restab->getNodeAttribs($node,['kernel','initrd','kcmdline']);
 | 
			
		||||
  my $pcfg;
 | 
			
		||||
  unless (-d "$tftpdir/etc") {
 | 
			
		||||
     mkpath("$tftpdir/etc");
 | 
			
		||||
  }
 | 
			
		||||
  open($pcfg,'>',$tftpdir."/etc/".$node);
 | 
			
		||||
  my $chaintab = xCAT::Table->new('chain');
 | 
			
		||||
  my $cref=$chaintab->getNodeAttribs($node,['currstate']);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user