mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
virt-make-fs: In debug mode, print qemu-img command line.
This commit is contained in:
@@ -397,6 +397,9 @@ if (!defined $size) {
|
||||
# Take the unusual step of invoking qemu-img here.
|
||||
|
||||
my @cmd = ("qemu-img", "create", "-f", $format, $output, $size);
|
||||
if ($debug) {
|
||||
print STDERR ("running: ", join (" ", @cmd), "\n");
|
||||
}
|
||||
system (@cmd) == 0 or
|
||||
die __"qemu-img create: failed to create disk image, see earlier error messages\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user