From eef2a3d85c8d8a14eb2910ba6f8c3997420061be Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 20 May 2008 19:04:45 +0000 Subject: [PATCH] -Fix problem where bootparams table was not being created git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1459 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/anaconda.pm | 4 ++-- xCAT-server-2.0/lib/xcat/plugins/pxe.pm | 2 +- xCAT-server-2.0/lib/xcat/plugins/sles.pm | 2 +- xCAT-server-2.0/lib/xcat/plugins/yaboot.pm | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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") {