diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-03-04 12:13:12 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-03-04 12:13:12 +0000 |
commit | 29b3ffdad5d6774f988fd0e25f9c8242e5dd577a (patch) | |
tree | c0e069b8ee5fbd6bcb569b7a488c523ffd16dc70 | |
parent | 290e8864fff8a390d6bbbe20fe9781a03edb4c6a (diff) | |
download | libguestfs-29b3ffdad5d6774f988fd0e25f9c8242e5dd577a.tar.gz libguestfs-29b3ffdad5d6774f988fd0e25f9c8242e5dd577a.tar.xz libguestfs-29b3ffdad5d6774f988fd0e25f9c8242e5dd577a.zip |
virt-make-fs: In debug mode, print qemu-img command line.
-rwxr-xr-x | tools/virt-make-fs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/virt-make-fs b/tools/virt-make-fs index 854cc085..3825f701 100755 --- a/tools/virt-make-fs +++ b/tools/virt-make-fs @@ -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"; |