From 236d9d7371205f7493f4afeb1472a8388e5a05b1 Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 25 Oct 2012 09:22:44 +0000 Subject: [PATCH] don't associate osdistro with osimages which created by xcat in copycds git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14120 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 360ca0089..d267e3793 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -1581,16 +1581,19 @@ sub copycd $callback->({data => "Error when updating the osdistro tables: " . $ret[1]}); } - my @ret=xCAT::SvrUtils->update_tables_with_templates($distname, $arch,$path,$osdistroname); +# my @ret=xCAT::SvrUtils->update_tables_with_templates($distname, $arch,$path,$osdistroname); + my @ret=xCAT::SvrUtils->update_tables_with_templates($distname, $arch,$path); 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,$osdistroname); +# my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "netboot",$path,$osdistroname); + my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "netboot",$path); #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,$osdistroname); +# my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "statelite",$path,$osdistroname); + my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "statelite",$path); #if ($ret[0] != 0) { #$callback->({data => "Error when updating the osimage tables for statelite: " . $ret[1]}); #}