From 97fe9a3e8a1c1b350e19fd1925d6207872485a77 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 24 Feb 2010 08:03:56 +0000 Subject: [PATCH] defect 2948441: use getInstallDir to get install dir git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5271 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Postage.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index 88bbc575a..d2218004b 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -281,6 +281,7 @@ sub makescript { } } else { my $stat="install"; + my $installroot = xCAT::Utils->getInstallDir(); if ($profile) { my $platform="rh"; if ($os) { @@ -291,7 +292,7 @@ sub makescript { elsif ($os =~ /aix.*/) { $platform = "aix"; } } if (($nodesetstate) && ($nodesetstate eq "netboot")) { $stat="netboot";} - $pkglist=xCAT::SvrUtils->get_otherpkgs_pkglist_file_name("/install/custom/$stat/$platform", $profile, $os, $arch); + $pkglist=xCAT::SvrUtils->get_otherpkgs_pkglist_file_name("$installroot/custom/$stat/$platform", $profile, $os, $arch); if (!$pkglist) { $pkglist=xCAT::SvrUtils->get_otherpkgs_pkglist_file_name("$::XCATROOT/share/xcat/$stat/$platform", $profile, $os, $arch); } } }