Limit dialogs for standard installation.

Signed-off-by: prudy <prudy@protonmail.com>
pull/3163/head
prudy 1 year ago
parent 8ac11a62b8
commit c3cb076062
  1. 7
      vm/haos-vm.sh

@ -167,6 +167,7 @@ function default_settings() {
VLAN="" VLAN=""
MTU="" MTU=""
START_VM="yes" START_VM="yes"
BTRFS_COW="default"
echo -e "${DGN}Using HAOS Version: ${BGN}${BRANCH}${CL}" echo -e "${DGN}Using HAOS Version: ${BGN}${BRANCH}${CL}"
echo -e "${DGN}Using Virtual Machine ID: ${BGN}${VMID}${CL}" echo -e "${DGN}Using Virtual Machine ID: ${BGN}${VMID}${CL}"
echo -e "${DGN}Using Machine Type: ${BGN}i440fx${CL}" echo -e "${DGN}Using Machine Type: ${BGN}i440fx${CL}"
@ -373,14 +374,14 @@ function start_script() {
function btrfs_cow() { function btrfs_cow() {
if [ -z "$DISK_CACHE" ]; then if [ -z "$DISK_CACHE" ]; then
BTRFS_COW="disabled" BTRFS_COW="disabled"
else elif [ -z "${BTRFS_COW:-}" ]; then
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "BTRFS COW" --yesno "Disable COW?" --defaultno 10 58); then if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "BTRFS COW" --yesno "Disable COW?" --defaultno 10 58); then
BTRFS_COW="disabled" BTRFS_COW="disabled"
else else
BTRFS_COW="" BTRFS_COW="default"
fi fi
fi fi
msg_ok "Btrfs COW: ${CL}${BL}${BTRFS_COW:-default}${CL}" msg_ok "Btrfs COW: ${CL}${BL}${BTRFS_COW}${CL}"
} }
check_root check_root

Loading…
Cancel
Save