Testing - change to 2GB RAM to pimox-haos-vm.sh

Testing - change to 2GB RAM
pull/1599/head
jfp949 2 years ago committed by GitHub
parent c495bdd5c4
commit b09675c810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      vm/pimox-haos-vm.sh

@ -118,8 +118,8 @@ function default_settings() {
HN=haos${STABLE} HN=haos${STABLE}
echo -e "${DGN}Allocated Cores: ${BGN}2${CL}" echo -e "${DGN}Allocated Cores: ${BGN}2${CL}"
CORE_COUNT="2" CORE_COUNT="2"
echo -e "${DGN}Allocated RAM: ${BGN}4096${CL}" echo -e "${DGN}Allocated RAM: ${BGN}2048${CL}"
RAM_SIZE="4096" RAM_SIZE="2048"
echo -e "${DGN}Using Bridge: ${BGN}vmbr0${CL}" echo -e "${DGN}Using Bridge: ${BGN}vmbr0${CL}"
BRG="vmbr0" BRG="vmbr0"
echo -e "${DGN}Using MAC Address: ${BGN}$GEN_MAC${CL}" echo -e "${DGN}Using MAC Address: ${BGN}$GEN_MAC${CL}"
@ -174,10 +174,10 @@ function advanced_settings() {
else else
if [ $exitstatus = 0 ]; then echo -e "${DGN}Allocated Cores: ${BGN}$CORE_COUNT${CL}"; fi if [ $exitstatus = 0 ]; then echo -e "${DGN}Allocated Cores: ${BGN}$CORE_COUNT${CL}"; fi
fi fi
RAM_SIZE=$(whiptail --inputbox "Allocate RAM in MiB" 8 58 4096 --title "RAM" --cancel-button Exit-Script 3>&1 1>&2 2>&3) RAM_SIZE=$(whiptail --inputbox "Allocate RAM in MiB" 8 58 2048 --title "RAM" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
exitstatus=$? exitstatus=$?
if [ -z $RAM_SIZE ]; then if [ -z $RAM_SIZE ]; then
RAM_SIZE="4096" RAM_SIZE="2048"
echo -e "${DGN}Allocated RAM: ${BGN}$RAM_SIZE${CL}" echo -e "${DGN}Allocated RAM: ${BGN}$RAM_SIZE${CL}"
else else
if [ $exitstatus = 0 ]; then echo -e "${DGN}Allocated RAM: ${BGN}$RAM_SIZE${CL}"; fi if [ $exitstatus = 0 ]; then echo -e "${DGN}Allocated RAM: ${BGN}$RAM_SIZE${CL}"; fi

Loading…
Cancel
Save