From a6eeb5d1396db45c5ca298ebdfaa8a13b37b547c Mon Sep 17 00:00:00 2001 From: linggao Date: Wed, 28 Jul 2010 18:29:16 +0000 Subject: [PATCH] full install supports linuximage.pkglist git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6899 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/SvrUtils.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index 975ba5808..930b36e46 100644 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -569,6 +569,10 @@ sub update_tables_with_templates #get synclist file my $synclistfile=xCAT::SvrUtils->getsynclistfile(undef, $osver, $arch, $profile, "netboot"); + #get the pkglist file + my $pkglistfile=get_pkglist_file_name($cuspath, $profile, $osver, $arch); + if (!$pkglistfile) { $pkglistfile=get_pkglist_file_name($defpath, $profile, $osver, $arch);} + #now update the db if (!$osimagetab) { $osimagetab=xCAT::Table->new('osimage',-create=>1); @@ -608,6 +612,7 @@ sub update_tables_with_templates my %key_col = (imagename=>$imagename); my %tb_cols=(template=>$tmplfile, pkgdir=>"$installroot/$osver/$arch", + pkglist=>$pkglistfile, otherpkglist=>$otherpkgsfile, otherpkgdir=>"$installroot/post/otherpkgs/$osver/$arch"); $linuximagetab->setAttribs(\%key_col, \%tb_cols);