From 58e3f390d93a875fae06445408839bd0744a22ea Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Wed, 12 May 2010 12:46:02 +1000 Subject: [PATCH] Only print message about creating a disk when actually creating a disk. Signed-off-by: Martin Schwenke --- autocluster | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autocluster b/autocluster index 99fe4f8..7811f8c 100755 --- a/autocluster +++ b/autocluster @@ -181,14 +181,15 @@ create_node_COMMON () mkdir -p $VIRTBASE/$CLUSTER tmp - echo "Creating the disk" rm -f "$DISK" case "$SYSTEM_DISK_FORMAT" in qcow2) + echo "Creating the disk..." qemu-img create -b "$base_disk" -f qcow2 "$DISK" create_node_configure_image "$DISK" "$type" ;; raw) + echo "Creating the disk..." cp -v --sparse=always "$base_disk" "$DISK" create_node_configure_image "$DISK" "$type" ;; -- 2.34.1