Commit c8eb659c authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Install GPU drivers

parent 16ce7c07
Loading
Loading
Loading
Loading
+22 −3
Original line number Diff line number Diff line
@@ -127,16 +127,17 @@ if ((SIZE<250000000)); then
  error "The specified PAT file is probably an update pack as it's too small." && exit 62
fi

info "Install: Extracting downloaded image..."

if { tar tf "$PAT"; } >/dev/null 2>&1; then

  info "Install: Extracting downloaded image..."
  tar xpf "$PAT" -C "$TMP/."

else

  if [ "$ARCH" != "amd64" ]; then

    info "Install: Installing QEMU..."

    export DEBCONF_NOWARNINGS="yes"
    export DEBIAN_FRONTEND="noninteractive"

@@ -149,6 +150,24 @@ else

  fi

  if [[ "${GPU}" == [Yy1]* ]] && [[ "$ARCH" == "amd64" ]]; then
  
    info "Install: Installing GPU drivers..."
    
    export DEBCONF_NOWARNINGS="yes"
    export DEBIAN_FRONTEND="noninteractive"

    apt-get -qq update
    apt-get -qq -y upgrade
    apt-get -qq --no-install-recommends -y install xserver-xorg-video-intel > /dev/null

    export DEBIAN_FRONTEND=""
    export DEBCONF_NOWARNINGS=""

  fi

  info "Install: Extracting downloaded image..."

  export LD_LIBRARY_PATH="/run/extract"

  if [ "$ARCH" == "amd64" ]; then