2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-25 05:41:09 +00:00

Improve genimage message

This commit is contained in:
Mark Gurevich
2020-06-01 14:29:12 -04:00
parent b8dae1c4cd
commit 1c88d50163

View File

@@ -336,6 +336,11 @@ unless ($onlyinitrd) {
print "Run cmd [$aptcmd1 $aptcmd2] to create rootimage bootstraps\n";
my $rc = system("$aptcmd1 $aptcmd2");
if ($rc) {
my $os=xCAT::Utils->osver("os");
if ($os ne 'ubuntu') {
print "Error: Can not run genimage for Ubunty OS on a non-Ubunty system ($os)";
exit 1;
}
print "Error: Can not create bootstraps for rootimage. Make sure you specified full http mirror path.\n";
exit 1;
}