Skip to content

Commit

Permalink
Use supported machine types
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba2k2 committed May 1, 2024
1 parent 173b7bd commit b00f3f9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ FN0IX6Z7106y3qPUktG2f+cCAwEAAQ==

Building from source is also possible; the original guide is at the end of this document.

**Note:** in April 2024 the `MACHINE` variable in `/etc/hassio.json` created by this package was changed to reflect the correct system architecture. Upgrading to `hassio-supervised` v1.7.0 or newer will automatically rewrite that file.
**Note:** in April 2024 the `MACHINE` variable in `/etc/hassio.json` created by this package was changed to reflect the correct system architecture. Upgrading to `hassio-supervised` v1.7.0 or newer will automatically rewrite that file with every update.

## Prerequisites

Expand Down
2 changes: 1 addition & 1 deletion hassio-supervised/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Maintainer:
pkgname=hassio-supervised
pkgver=1.7.0
pkgrel=1
pkgrel=2
pkgdesc="Home Assistant Supervised"
url="https://github.com/home-assistant/supervised-installer"
arch="noarch"
Expand Down
10 changes: 5 additions & 5 deletions hassio-supervised/hassio-supervised.post-install
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ done

case ${ARCH} in
"i386" | "i686")
MACHINE=${MACHINE:=i386}
MACHINE=${MACHINE:=qemux86}
HASSIO_DOCKER="${DOCKER_REPO}/i386-hassio-supervisor"
;;
"x86_64")
MACHINE=${MACHINE:=amd64}
MACHINE=${MACHINE:=qemux86-64}
HASSIO_DOCKER="${DOCKER_REPO}/amd64-hassio-supervisor"
;;
"arm" |"armv6l")
MACHINE=${MACHINE:=armhf}
MACHINE=${MACHINE:=qemuarm}
HASSIO_DOCKER="${DOCKER_REPO}/armhf-hassio-supervisor"
;;
"armv7l")
MACHINE=${MACHINE:=armv7}
MACHINE=${MACHINE:=raspberrypi2}
HASSIO_DOCKER="${DOCKER_REPO}/armv7-hassio-supervisor"
;;
"aarch64")
MACHINE=${MACHINE:=aarch64}
MACHINE=${MACHINE:=qemuarm-64}
HASSIO_DOCKER="${DOCKER_REPO}/aarch64-hassio-supervisor"
;;
*)
Expand Down
10 changes: 5 additions & 5 deletions hassio-supervised/hassio-supervised.post-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ done

case ${ARCH} in
"i386" | "i686")
MACHINE=${MACHINE:=i386}
MACHINE=${MACHINE:=qemux86}
HASSIO_DOCKER="${DOCKER_REPO}/i386-hassio-supervisor"
;;
"x86_64")
MACHINE=${MACHINE:=amd64}
MACHINE=${MACHINE:=qemux86-64}
HASSIO_DOCKER="${DOCKER_REPO}/amd64-hassio-supervisor"
;;
"arm" |"armv6l")
MACHINE=${MACHINE:=armhf}
MACHINE=${MACHINE:=qemuarm}
HASSIO_DOCKER="${DOCKER_REPO}/armhf-hassio-supervisor"
;;
"armv7l")
MACHINE=${MACHINE:=armv7}
MACHINE=${MACHINE:=raspberrypi2}
HASSIO_DOCKER="${DOCKER_REPO}/armv7-hassio-supervisor"
;;
"aarch64")
MACHINE=${MACHINE:=aarch64}
MACHINE=${MACHINE:=qemuarm-64}
HASSIO_DOCKER="${DOCKER_REPO}/aarch64-hassio-supervisor"
;;
*)
Expand Down

0 comments on commit b00f3f9

Please sign in to comment.