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
This commit is contained in:
parent
25553e49c7
commit
97fe9a3e8a
@ -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); }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user