diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 8ff6fe550..3a9fe1100 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -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/";