-Reap stale pxelinux config files

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3658 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-06-29 18:42:23 +00:00
parent 3073ff5469
commit 06a1efc0c0

View File

@ -97,6 +97,7 @@ sub setstate {
$kern->{kcmdline} =~ s/!myipfn!/$ipfn/;
}
my $pcfg;
unlink($tftpdir."/xcat/xnba/nodes/".$node.".pxelinux");
open($pcfg,'>',$tftpdir."/xcat/xnba/nodes/".$node);
my $cref=$chainhash{$node}->[0]; #$chaintab->getNodeAttribs($node,['currstate']);
print $pcfg "#!gpxe\n";