#!/bin/bash set -ex if [ $DEBIAN_ARCH = arm64 ]; then ARCH_PACKAGES="firmware-qcom-media" elif [ $DEBIAN_ARCH = amd64 ]; then # Upstream LLVM package repository apt-get -y install --no-install-recommends gnupg ca-certificates apt-key add /llvm-snapshot.gpg.key echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-9 main" >/etc/apt/sources.list.d/llvm9.list apt-get update ARCH_PACKAGES="libelf1 libllvm9 libxcb-dri2-0 libxcb-dri3-0 libxcb-present0 libxcb-sync1 libxcb-xfixes0 libxshmfence1 firmware-amd-graphics " fi apt-get -y install --no-install-recommends \ ca-certificates \ curl \ initramfs-tools \ libpng16-16 \ strace \ libsensors5 \ libexpat1 \ libx11-6 \ libx11-xcb1 \ $ARCH_PACKAGES \ netcat-openbsd \ python3 \ libpython3.7 \ python3-pil \ python3-pytest \ python3-requests \ python3-yaml \ sntp \ wget \ xz-utils if [ -n "$INCLUDE_VK_CTS" ]; then apt-get install -y libvulkan1 fi passwd root -d chsh -s /bin/sh cat > /init <