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";