fix for bug 3052910: add more info when can not get template file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7249 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c30840f5c7
commit
366020edfa
@ -751,6 +751,7 @@ sub mkinstall
|
||||
error => [
|
||||
"No $platform kickstart template exists for "
|
||||
. $profile
|
||||
. " in directory $installroot/custom/install/$platform or $::XCATROOT/share/xcat/install/$platform"
|
||||
],
|
||||
errorcode => [1]
|
||||
}
|
||||
|
@ -447,6 +447,7 @@ sub mkinstall
|
||||
my $pkglistfile;
|
||||
my $osinst;
|
||||
my $ent = $ntents->{$node}->[0];
|
||||
my $plat = "";
|
||||
|
||||
if ($ent and $ent->{provmethod} and ($ent->{provmethod} ne 'install') and ($ent->{provmethod} ne 'netboot') and ($ent->{provmethod} ne 'statelite')) {
|
||||
my $imagename=$ent->{provmethod};
|
||||
@ -499,7 +500,6 @@ sub mkinstall
|
||||
$os = $ent->{os};
|
||||
$arch = $ent->{arch};
|
||||
$profile = $ent->{profile};
|
||||
my $plat = "";
|
||||
if($os =~/sles.*/){
|
||||
$plat = "sles";
|
||||
}elsif($os =~/suse.*/){
|
||||
@ -536,7 +536,7 @@ sub mkinstall
|
||||
$callback->(
|
||||
{
|
||||
error =>
|
||||
["No AutoYaST template exists for " . $ent->{profile}],
|
||||
["No AutoYaST template exists for " . $ent->{profile} . " in directory $installroot/custom/install/$plat or $::XCATROOT/share/xcat/install/$plat"],
|
||||
errorcode => [1]
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user