mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	for bug 3438 on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16756 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -393,16 +393,24 @@ sub copycd | ||||
|     } | ||||
|     else | ||||
|     { | ||||
|         my $osdistoname = $distname . "-" . $arch; | ||||
|         my $temppath = "$installroot/$distname/$arch"; | ||||
|         $callback->({data => "Media copy operation successful"}); | ||||
| 	my @ret=xCAT::SvrUtils->update_tables_with_templates($distname, $arch); | ||||
|         my @ret=xCAT::SvrUtils->update_osdistro_table($distname, $arch, $temppath, $osdistroname); | ||||
|         if ($ret[0] != 0) { | ||||
|             $callback->({data => "Error when updating the osdistro tables: " . $ret[1]}); | ||||
|         } | ||||
|  | ||||
|         $callback->({data => "Media copy operation successful"}); | ||||
| 	my @ret=xCAT::SvrUtils->update_tables_with_templates($distname, $arch, $temppath, $osdistroname); | ||||
|         if ($ret[0] != 0) { | ||||
| 	    $callback->({data => "Error when updating the osimage tables: " . $ret[1]}); | ||||
| 	} | ||||
|         my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "netboot"); | ||||
|         my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "netboot", $temppath, $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"); | ||||
|         my @ret=xCAT::SvrUtils->update_tables_with_diskless_image($distname, $arch, undef, "statelite", $temppath, $osdistroname); | ||||
|         if ($ret[0] != 0) { | ||||
|             $callback->({data => "Error when updating the osimage tables for statelite: " . $ret[1]}); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user