diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index 5e0007649..003d251a3 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -265,10 +265,8 @@ sub mknetboot } # TODO: move the table operations out of the foreach loop - my $restab = xCAT::Table->new('noderes'); my $bptab = xCAT::Table->new('bootparams',-create=>1); my $hmtab = xCAT::Table->new('nodehm'); - $ent = $restab->getNodeAttribs($node, ['primarynic', 'installnic']); my $sent = $hmtab->getNodeAttribs($node, ['serialport', 'serialspeed', 'serialflow']); diff --git a/xCAT-server/share/xcat/netboot/sles/genimage b/xCAT-server/share/xcat/netboot/sles/genimage index 92662fc39..4fd491987 100755 --- a/xCAT-server/share/xcat/netboot/sles/genimage +++ b/xCAT-server/share/xcat/netboot/sles/genimage @@ -592,7 +592,7 @@ if ($needUpdateTable) { $updates_os{'provmethod'} = 'netboot'; $updates_os{'osname'} = 'Linux'; $updates_os{'osvers'} = $osver; - $updates_os{'osdistro'} = 'rh'; # not used currently + $updates_os{'osdistro'} = 'sles'; # not used currently $updates_os{'osarch'} = $arch; $osimagetab->setAttribs(\%keyhash, \%updates_os); @@ -607,6 +607,8 @@ if ($needUpdateTable) { $updates_os{'provmethod'} = 'statelite'; $osimagetab->setAttribs(\%keyhash, \%updates_os); + $osimagetab->commit; + $linuximagetab->setAttribs(\%keyhash, \%updates); $linuximagetab->commit; }