From 06a1efc0c0510c77e7d066e689eee1e0f259ecd7 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 29 Jun 2009 18:42:23 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/pxe.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/pxe.pm b/xCAT-server/lib/xcat/plugins/pxe.pm index 3586259b3..6c3d8bc76 100644 --- a/xCAT-server/lib/xcat/plugins/pxe.pm +++ b/xCAT-server/lib/xcat/plugins/pxe.pm @@ -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";