Unverified Commit 1c01c72a authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: User-mode networking (#713)

parent 2a32b548
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 [[ "${ARCH,,}" != "arm64" ]]; then
        if [[ "${MACHINE,,}" != "virt" ]]; 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 [[ "${ARCH,,}" != "arm64" ]]; then
      if [[ "${MACHINE,,}" != "virt" ]]; then
        if [ -n "$name" ] && [ -z "$url" ]; then
          error "No image for $name available!"
          return 1
@@ -211,7 +211,7 @@ getURL() {
        fi
      fi

      if [[ "${ARCH,,}" != "arm64" ]]; then
      if [[ "${MACHINE,,}" != "virt" ]]; then
        echo "$url"
      else
        echo "$arm"
+8 −1
Original line number Diff line number Diff line
@@ -492,7 +492,14 @@ else

      closeBridge
      NETWORK="user"
      warn "falling back to user-mode networking! Performance will be bad and port mapping will not work."
      msg="falling back to user-mode networking!"
      if [ ! - f "/run/.containerenv" ]; then
        msg="an error occured, $msg"
      else
        msg="podman rootless mode detected, $msg"
      fi
      warn "$msg"
      [ -z "$USER_PORTS" ] && info "Notice: port mapping will not work without \"USER_PORTS\" now."

    fi