diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index f4828d10c..0eadf8d4e 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -986,14 +986,20 @@ sub mkinstall { $netserver = $ent->{nfsserver}; } + my $httpprefix = $pkgdir; + if ($installroot =~ /\/$/) { #must prepend /install/ + $httpprefix =~ s/^$installroot/\/install\//; + } else { + $httpprefix =~ s/^$installroot/\/install/; + } my $kcmdline = "quiet autoyast=$httpmethod://" . $netserver . ":" . $httpport - . "$installroot/autoinst/" + . "/install/autoinst/" . $node . " install=$httpmethod://" . $netserver . ":" . $httpport - . "$pkgdir/1"; + . "$httpprefix/1"; my $netdev = ""; if ($ent->{installnic})