#!/bin/bash set -ex if [ $DEBIAN_ARCH = arm64 ]; then ARCH_PACKAGES="firmware-qcom-media" elif [ $DEBIAN_ARCH = amd64 ]; then ARCH_PACKAGES="firmware-amd-graphics libelf1 libllvm11 " fi INSTALL_CI_FAIRY_PACKAGES="git python3-dev python3-pip python3-setuptools python3-wheel " apt-get -y install --no-install-recommends \ $ARCH_PACKAGES \ $INSTALL_CI_FAIRY_PACKAGES \ apitrace \ ca-certificates \ curl \ firmware-realtek \ initramfs-tools \ libasan6 \ libexpat1 \ libpng16-16 \ libpython3.9 \ libsensors5 \ libvulkan1 \ libwaffle-1-0 \ libx11-6 \ libx11-xcb1 \ libxcb-dri2-0 \ libxcb-dri3-0 \ libxcb-glx0 \ libxcb-present0 \ libxcb-randr0 \ libxcb-shm0 \ libxcb-sync1 \ libxcb-xfixes0 \ libxdamage1 \ libxext6 \ libxfixes3 \ libxkbcommon0 \ libxrender1 \ libxshmfence1 \ libxxf86vm1 \ netcat-openbsd \ python3 \ python3-lxml \ python3-mako \ python3-numpy \ python3-packaging \ python3-pil \ python3-renderdoc \ python3-requests \ python3-simplejson \ python3-yaml \ sntp \ strace \ waffle-utils \ wget \ xinit \ xserver-xorg-core \ xz-utils # Needed for ci-fairy, this revision is able to upload files to # MinIO and doesn't depend on git pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@0f1abc24c043e63894085a6bd12f14263e8b29eb apt-get purge -y \ $INSTALL_CI_FAIRY_PACKAGES passwd root -d chsh -s /bin/sh cat > /init <