To support multiple paths for osimage.pkgdir. get the first pkgdir(the base pkgdir), and use it later.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14692 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-12-21 06:15:02 +00:00
parent 698de9076f
commit 783a1d100f

View File

@ -1144,6 +1144,11 @@ sub mkinstall
}
#my $installdir="/install"; #TODO: not hardcode installdir
#my $tftpdir = "/tftpboot";
#To support multiple paths for osimage.pkgdir. We require the first value of osimage.pkgdir
# should be the os base pkgdir.
my @srcdirs = split(",", $pkgdir);
$pkgdir = $srcdirs[0];
# create the node-specific post scripts
#mkpath "/install/postscripts/";