-Fix defect where pxe netboot would not work if pxelinux.cfg was not pre-created
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5641 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f10e730abb
commit
cc7b516b09
@ -4,6 +4,7 @@ use Data::Dumper;
|
||||
use Sys::Syslog;
|
||||
use Socket;
|
||||
use File::Copy;
|
||||
use File::Path;
|
||||
use Getopt::Long;
|
||||
|
||||
my $addkcmdlinehandled;
|
||||
@ -133,6 +134,10 @@ sub setstate {
|
||||
$kern->{kcmdline} =~ s/!myipfn!/$ipfn/g;
|
||||
}
|
||||
my $pcfg;
|
||||
unless (-d $tftpdir."/pxelinux.cfg/") {
|
||||
mkpath($tftpdir."/pxelinux.cfg/");
|
||||
}
|
||||
|
||||
open($pcfg,'>',$tftpdir."/pxelinux.cfg/".$node);
|
||||
my $cref=$chainhash{$node}->[0]; #$chaintab->getNodeAttribs($node,['currstate']);
|
||||
if ($cref->{currstate}) {
|
||||
|
Loading…
Reference in New Issue
Block a user