mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	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:
		| @@ -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); } | ||||
|       } | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user