From a17e808c845f9cb59fd420ef24328fe77cd32358 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 17 Feb 2022 21:29:39 -0500 Subject: [PATCH] Update haos_vm.sh --- vm/haos_vm.sh | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/vm/haos_vm.sh b/vm/haos_vm.sh index a19de432..106bdca7 100644 --- a/vm/haos_vm.sh +++ b/vm/haos_vm.sh @@ -81,7 +81,7 @@ fi info "Using '$STORAGE' for storage location." VMID=$(pvesh get /cluster/nextid) info "Container ID is $VMID." -echo -e "\e[1;33m Getting URL for latest Home Assistant disk image... \e[0m" +echo -en "\e[1;92m Getting URL for Latest Home Assistant Disk Image... \e[0m" RELEASE_TYPE=qcow2 URL=$(cat</dev/null set +o errtrace ( - echo -e "${CHECKMARK} \e[1;92m Adding serial port and configuring console... \e[0m" +echo -e "${CHECKMARK} \r" + echo -en "\e[1;92m Adding Serial Port and Configuring Console... \e[0m" trap ' warn "Unable to configure serial port. VM is still functional." if [ "$(qm config $VMID | sed -n ''/serial0/p'')" != "" ]; then @@ -146,10 +151,12 @@ set +o errtrace fi exit ' ERR + echo -e "${CHECKMARK} \r" if [ "$(command -v kpartx)" = "" ]; then - echo -e "${CHECKMARK} \e[1;92m Installing kpartx... \e[0m" + echo -en "\e[1;92m Installing kpartx... \e[0m" apt-get update >/dev/null apt-get -qqy install kpartx &>/dev/null + echo -e "${CHECKMARK} \r" fi DISK1_PATH="$(pvesm path $DISK1_REF)" DISK1_PART1="$(kpartx -al $DISK1_PATH | awk 'NR==1 {print $1}')"