From 6946f41784423788e71441255e67c2b9b1c3633d Mon Sep 17 00:00:00 2001 From: Sven Vogel Date: Mon, 3 Jun 2019 09:30:45 +0200 Subject: [PATCH] Fix template size for managed storage / refactor cloud-install-sys-tmplt and createtmplt.sh (#3346) * refactor cloud-install-sys-tmplt and createtmplt.sh * move qemu-img check to kvm / add more comments if qemu-img not available / set virtual size only for qcow2 * add comments to the failed and get options block / rename vars in failed block / typo Fix * add comments to the failed and get options block / rename vars in failed block / typo Fix to cloudtmplt.sh --- .../storage/secondary/cloud-install-sys-tmplt | 300 +++++++++--------- scripts/storage/secondary/createtmplt.sh | 184 +++++------ 2 files changed, 219 insertions(+), 265 deletions(-) diff --git a/scripts/storage/secondary/cloud-install-sys-tmplt b/scripts/storage/secondary/cloud-install-sys-tmplt index 91b3a7c9088..6bb8d20856b 100755 --- a/scripts/storage/secondary/cloud-install-sys-tmplt +++ b/scripts/storage/secondary/cloud-install-sys-tmplt @@ -1,5 +1,4 @@ #!/bin/bash -# $Id: installrtng.sh 11251 2010-07-23 23:40:44Z abhishek $ $HeadURL: svn://svn.lab.vmops.com/repos/vmdev/java/scripts/storage/secondary/installrtng.sh $ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file @@ -20,19 +19,35 @@ usage() { - printf "Usage: %s: -m -f [-h ] [ -s ][-u ] [-F ] [-e