mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
Verify debootstrap command can be executed
This commit is contained in:
parent
a25afe2ab6
commit
54a55a4d0d
@ -333,10 +333,14 @@ unless ($onlyinitrd) {
|
||||
}
|
||||
}
|
||||
|
||||
if (! -x $aptcmd1) {
|
||||
print "Error: Can not execute $aptcmd1 command. Make sure you are running on a Debian based system.\n";
|
||||
exit 1;
|
||||
}
|
||||
print "Run cmd [$aptcmd1 $aptcmd2] to create rootimage bootstraps\n";
|
||||
my $rc = system("$aptcmd1 $aptcmd2");
|
||||
if ($rc) {
|
||||
print "Error: cannnot create bootstraps for rootimage. Make sure you specified full http mirror path.\n";
|
||||
print "Error: Can not create bootstraps for rootimage. Make sure you specified full http mirror path.\n";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user