Unverified Commit 4dad15fb authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Platform variable (#715)

parent 4fdbd39c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ getURL() {
    "gentoo" | "gentoolinux" | "gentoo-linux" )
      name="Gentoo Linux"
      if [[ "$ret" == "url" ]]; then
        if [[ "${MACHINE,,}" != "virt" ]]; then
        if [[ "${PLATFORM,,}" != "arm64" ]]; then
          body=$(pipe "https://mirror.bytemark.co.uk/gentoo/releases/amd64/autobuilds/latest-iso.txt") || exit 65
          version=$(echo "$body" | grep livegui | cut -d' ' -f1)
          url="https://distfiles.gentoo.org/releases/amd64/autobuilds/$version"
@@ -199,7 +199,7 @@ getURL() {
      ;;
    "url" )

      if [[ "${MACHINE,,}" != "virt" ]]; then
      if [[ "${PLATFORM,,}" != "arm64" ]]; then
        if [ -n "$name" ] && [ -z "$url" ]; then
          error "No image for $name available!"
          return 1
@@ -211,7 +211,7 @@ getURL() {
        fi
      fi

      if [[ "${MACHINE,,}" != "virt" ]]; then
      if [[ "${PLATFORM,,}" != "arm64" ]]; then
        echo "$url"
      else
        echo "$arm"
+1 −1
Original line number Diff line number Diff line
@@ -556,7 +556,7 @@ case "${DISK_TYPE,,}" in
  * ) error "Invalid DISK_TYPE specified, value \"$DISK_TYPE\" is not recognized!" && exit 80 ;;
esac

if [[ "${MACHINE,,}" != "virt" ]]; then
if [[ "${PLATFORM,,}" != "arm64" ]]; then
  FALLBACK="ide"
else
  FALLBACK="usb"
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
set -Eeuo pipefail

: "${APP:="QEMU"}"
: "${PLATFORM:="x64"}"
: "${SUPPORT:="https://github.com/qemus/qemu"}"

cd /run