From fc1e1386a1ff2575c2c6ebf45c50b3134182b03f Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 30 Aug 2012 09:20:34 +0000 Subject: [PATCH] update osdistro table after copycd git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13655 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index cc204f543..b95971c95 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -1567,16 +1567,22 @@ sub copycd else { $callback->({data => "Media copy operation successful"}); - my @ret=xCAT::SvrUtils->update_tables_with_templates($distname, $arch,$path); + my $osdistroname=$distname."-".$arch; + my @ret=xCAT::SvrUtils->update_osdistro_table($distname,$arch,$path,$osdistroname); + if ($ret[0] != 0) { + $callback->({data => "Error when updating the osdistro tables: " . $ret[1]}); + } + + my @ret=xCAT::SvrUtils->update_tables_with_templates($distname, $arch,$path,$osdistroname); if ($ret[0] != 0) { $callback->({data => "Error when updating the osimage tables: " . $ret[1]}); } #hiding the messages about this not being found, since it may be intentional - my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "netboot",$path); + my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "netboot",$path,$osdistroname); #if ($ret[0] != 0) { #$callback->({data => "Error when updating the osimage tables for stateless: " . $ret[1]}); #} - my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "statelite",$path); + my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "statelite",$path,$osdistroname); #if ($ret[0] != 0) { #$callback->({data => "Error when updating the osimage tables for statelite: " . $ret[1]}); #}