From 928124e77d91f573ae6e397e0c3ba27c50a6c36e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 4 Mar 2008 16:28:06 +0000 Subject: [PATCH] -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 --- xCAT-server-2.0/lib/xcat/plugins/yaboot.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server-2.0/lib/xcat/plugins/yaboot.pm b/xCAT-server-2.0/lib/xcat/plugins/yaboot.pm index 1a3cd8f20..c584a0534 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/yaboot.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/yaboot.pm @@ -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']);