summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-22 10:24:48 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-27 16:36:16 +0100
commite3fcc04527d7afea0eae92c8e37fd0a6422c0186 (patch)
treed45236cf09ee949cc14775194f91144806571980
parent8d55f7a7b19e631a50ac34e01c4905f001ee5d78 (diff)
downloadlibguestfs-e3fcc04527d7afea0eae92c8e37fd0a6422c0186.tar.gz
libguestfs-e3fcc04527d7afea0eae92c8e37fd0a6422c0186.tar.xz
libguestfs-e3fcc04527d7afea0eae92c8e37fd0a6422c0186.zip
EPEL 5: sparsify: Fix command line options for old qemu-img.
This didn't have -o backing_file etc. Use old -b and -F options instead.
-rw-r--r--sparsify/sparsify.ml14
1 files changed, 6 insertions, 8 deletions
diff --git a/sparsify/sparsify.ml b/sparsify/sparsify.ml
index ec3512a9..13746624 100644
--- a/sparsify/sparsify.ml
+++ b/sparsify/sparsify.ml
@@ -169,14 +169,12 @@ let overlaydisk =
(* Create it with the indisk as the backing file. *)
let cmd =
- let backing_file_option =
- sprintf "backing_file=%s%s"
- (replace_str indisk "," ",,")
- (match format with
- | None -> ""
- | Some fmt -> sprintf ",backing_fmt=%s" fmt) in
- sprintf "qemu-img create -f qcow2 -o %s %s > /dev/null"
- (Filename.quote backing_file_option) (Filename.quote tmp) in
+ sprintf "qemu-img create -f qcow2%s -b %s %s > /dev/null"
+ (match format with
+ | None -> ""
+ | Some fmt -> sprintf " -F %s" fmt)
+ (replace_str indisk "," ",,")
+ (Filename.quote tmp) in
if verbose then
printf "%s\n%!" cmd;
if Sys.command cmd <> 0 then