support multiple paths of osimage in sles diskfull installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15322 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
841d58be57
commit
1ecd2f5164
@ -887,8 +887,13 @@ sub mkinstall
|
||||
|
||||
#To support multiple paths for osimage.pkgdir. We require the first value of osimage.pkgdir
|
||||
# should be the os base pkgdir.
|
||||
my $tmppkgdir=$pkgdir;
|
||||
my @srcdirs = split(",", $pkgdir);
|
||||
$pkgdir = $srcdirs[0];
|
||||
if( $pkgdir =~/^($installroot\/$os\/$arch)$/) {
|
||||
$srcdirs[0]="$pkgdir/1";
|
||||
$tmppkgdir=join(",", @srcdirs);
|
||||
}
|
||||
|
||||
#Call the Template class to do substitution to produce a kickstart file in the autoinst dir
|
||||
my $tmperr;
|
||||
@ -900,8 +905,8 @@ sub mkinstall
|
||||
"$installroot/autoinst/$node",
|
||||
$node,
|
||||
$pkglistfile,
|
||||
$pkgdir,
|
||||
undef,
|
||||
$tmppkgdir,
|
||||
$os,
|
||||
$partfile
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user