diff --git a/xCAT-server-2.0/lib/xcat/plugins/anaconda.pm b/xCAT-server-2.0/lib/xcat/plugins/anaconda.pm index 365630c77..be539c035 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/anaconda.pm @@ -244,7 +244,7 @@ sub mknetboot next; } my $restab = xCAT::Table->new('noderes'); - my $bptab = xCAT::Table->new('bootparams'); + my $bptab = xCAT::Table->new('bootparams',-create=>1); my $hmtab = xCAT::Table->new('nodehm'); my $ent = $restab->getNodeAttribs($node, ['primarynic']); my $sent = @@ -551,7 +551,7 @@ sub mkinstall #We have a shot... my $restab = xCAT::Table->new('noderes'); - my $bptab = xCAT::Table->new('bootparams'); + my $bptab = xCAT::Table->new('bootparams',-create=>1); my $hmtab = xCAT::Table->new('nodehm'); my $ent = $restab->getNodeAttribs($node, diff --git a/xCAT-server-2.0/lib/xcat/plugins/pxe.pm b/xCAT-server-2.0/lib/xcat/plugins/pxe.pm index 71bbcb312..3d65293e1 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/pxe.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/pxe.pm @@ -62,7 +62,7 @@ sub setstate { =cut my $node = shift; - my $bptab = xCAT::Table->new('bootparams'); + my $bptab = xCAT::Table->new('bootparams',-create=>1); my $kern = $bptab->getNodeAttribs($node,['kernel','initrd','kcmdline']); my $pcfg; open($pcfg,'>',$tftpdir."/pxelinux.cfg/".$node); diff --git a/xCAT-server-2.0/lib/xcat/plugins/sles.pm b/xCAT-server-2.0/lib/xcat/plugins/sles.pm index 316b1ace2..3dd3e1575 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/sles.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/sles.pm @@ -178,7 +178,7 @@ sub mkinstall #We have a shot... my $restab = xCAT::Table->new('noderes'); - my $bptab = xCAT::Table->new('bootparams'); + my $bptab = xCAT::Table->new('bootparams',-create=>1); my $hmtab = xCAT::Table->new('nodehm'); my $ent = $restab->getNodeAttribs( diff --git a/xCAT-server-2.0/lib/xcat/plugins/yaboot.pm b/xCAT-server-2.0/lib/xcat/plugins/yaboot.pm index 26dab2e61..0f407316d 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/yaboot.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/yaboot.pm @@ -64,7 +64,7 @@ sub setstate { =cut my $node = shift; - my $bptab = xCAT::Table->new('bootparams'); + my $bptab = xCAT::Table->new('bootparams',-create=>1); my $kern = $bptab->getNodeAttribs($node,['kernel','initrd','kcmdline']); my $pcfg; unless (-d "$tftpdir/etc") {