diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 864950b4..c7cea0e3 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file. ### Changed - **Home Assistant OS VM** - - Option to create VM using Stable, Latest or Dev Image + - Option to create VM using Stable, Beta or Dev Image ## 2022-08-11 diff --git a/README.md b/README.md index a1093d3e..9dcc539b 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ ________________________________________________________________________________

Home Assistant OS VM

-

Option to create VM using Stable, Latest or Dev Image

+

Option to create VM using Stable, Beta or Dev Image

The script automates the manual process of finding, downloading and extracting the Official KVM (qcow2) disk image provided by the Home Assistant Team, creating a VM with user defined settings, importing and attaching the disk, setting the boot order and starting the VM. No hidden (kpartx, unzip, ect...) installs of any kind. Supports lvmthin, zfspool, nfs, dir and btrfs storage types. diff --git a/vm/haos-vm-v4.sh b/vm/haos-vm-v4.sh index 7adda760..1f9fa7cd 100644 --- a/vm/haos-vm-v4.sh +++ b/vm/haos-vm-v4.sh @@ -3,7 +3,7 @@ echo -e "Loading..." GEN_MAC=$(echo '00 60 2f'$(od -An -N3 -t xC /dev/urandom) | sed -e 's/ /:/g' | tr '[:lower:]' '[:upper:]') NEXTID=$(pvesh get /cluster/nextid) STABLE=$(curl -s https://raw.githubusercontent.com/home-assistant/version/master/stable.json | grep "ova" | awk '{print substr($2, 2, length($2)-3) }') -LATEST=$(curl -sX GET "https://api.github.com/repos/home-assistant/operating-system/releases" | awk '/tag_name/{print $4;exit}' FS='[""]') +BETA=$(curl -s https://raw.githubusercontent.com/home-assistant/version/master/beta.json | grep "ova" | awk '{print substr($2, 2, length($2)-3) }') DEV=$(curl -s https://raw.githubusercontent.com/home-assistant/version/master/dev.json | grep "ova" | awk '{print substr($2, 2, length($2)-3) }') YW=`echo "\033[33m"` BL=`echo "\033[36m"` @@ -103,7 +103,7 @@ function default_settings() { function advanced_settings() { BRANCH=$(whiptail --title "HAOS VERSION" --radiolist "Choose Version" 10 58 3 \ "$STABLE" "Stable" ON \ -"$LATEST" "Latest" OFF \ +"$BETA" "Beta" OFF \ "$DEV" "Dev" OFF \ 3>&1 1>&2 2>&3) exitstatus=$?