From c41be3c0445196297723112682df5455543380e1 Mon Sep 17 00:00:00 2001 From: Roger Luethi Date: Sun, 11 Oct 2015 10:32:47 +0200 Subject: [PATCH] Cosmetics in osbash.sh Rename cleanup_base_disk to a more accurate name, check_existing_base_disk. Add additional console output. Change-Id: I6342ffdba6872fbfdce4f0a4c7dcd7cd316c369e --- labs/osbash/osbash.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/labs/osbash/osbash.sh b/labs/osbash/osbash.sh index c14e1fd7..297c2224 100755 --- a/labs/osbash/osbash.sh +++ b/labs/osbash/osbash.sh @@ -190,7 +190,7 @@ echo -e >&2 "${CStatus:-} $(date) osbash starting ${CReset:-}" clean_dir "$LOG_DIR" -function cleanup_base_disk { +function check_existing_base_disk { if [ "$CMD" = basedisk ]; then if base_disk_exists; then @@ -206,12 +206,14 @@ function cleanup_base_disk { fi } -${OSBASH:-:} cleanup_base_disk +${OSBASH:-:} check_existing_base_disk #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if ! base_disk_exists; then + echo -e >&2 "${CStatus:-}Creating basedisk.${CReset:-}" vm_install_base else + echo -e >&2 "${CStatus:-}basedisk already exists.${CReset:-}" # Leave base disk alone, but call the function if wbatch is active OSBASH= ${WBATCH:-:} vm_install_base fi