From 3ceef8ff874825acf53d396fdaea7cafe55b28c2 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Thu, 10 Apr 2025 19:10:41 -0700 Subject: [PATCH] install: update intel repos --- install/docker/install-intel-graphics.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/install/docker/install-intel-graphics.sh b/install/docker/install-intel-graphics.sh index bfe2b2d55..8afcda8eb 100644 --- a/install/docker/install-intel-graphics.sh +++ b/install/docker/install-intel-graphics.sh @@ -4,6 +4,24 @@ then exit 0 fi + +UBUNTU_22_04=$(lsb_release -r | grep "22.04") +UBUNTU_24_04=$(lsb_release -r | grep "24.04") + +# needs either ubuntu 22.0.4 or 24.04 +if [ -z "$UBUNTU_22_04" ] && [ -z "$UBUNTU_24_04" ] +then + echo "Intel graphics package can not be installed. Ubuntu version could not be detected when checking lsb-release and /etc/os-release." + exit 1 +fi + +if [ -n "$UBUNTU_22_04" ] +then + distro="jammy" +else + distro="noble" +fi + # no errors beyond this point set -e @@ -24,7 +42,7 @@ echo "Installing Intel graphics packages." apt-get update && apt-get install -y gpg-agent && rm -f /usr/share/keyrings/intel-graphics.gpg && curl -L https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --yes --output /usr/share/keyrings/intel-graphics.gpg && -echo 'deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu jammy arc' | tee /etc/apt/sources.list.d/intel.gpu.jammy.list && +echo 'deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu '$distro' arc' | tee /etc/apt/sources.list.d/intel.gpu.$distro.list && apt-get -y update && apt-get -y install intel-media-va-driver-non-free && apt-get -y dist-upgrade;