2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-03 10:07:36 +00:00

Inform the user when arch cannot automatically be detected, if we are in the correct plugin

This commit is contained in:
Victor Hu
2019-05-10 10:36:31 -04:00
parent 4ae1391051
commit 9854215617

View File

@@ -2124,8 +2124,8 @@ sub copycd
}
else
{
print "DEBUG - [anaconda.pm] Could not auto-detect operating system.\n";
# Cannot continue with what was detected, or attributes provided
print "DEBUG - [anaconda.pm] Could not auto-detect operating system. Maybe some other plugin can, return.\n";
return;
}
}
@@ -2147,10 +2147,14 @@ sub copycd
if ($arch eq "ppc") { $arch = "ppc64" }
}
# At this point, if arch is not provided and we cannot determine it, return
# At this point, if arch is not provided and we cannot determine it, inform the user
unless ($arch)
{
print "DEBUG - [anaconda.pm] ARCH not detected, provided an OS ARCH using the -a option.\n";
$callback->(
{
error => "copycds could not identify the ARCH, you may wish to try -a <arch>.", errorcode => [1]
}
);
return;
}