From 4c33d7fe0017cb3efccb8ed9cfed8f9fefdbfb03 Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Mon, 27 Jan 2025 07:14:21 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9C=20fix(runner):=20Fix=20Pacman=20fa?= =?UTF-8?q?iling=20to=20install=20packages=20on=20Amazon=20Linux=202=20(#1?= =?UTF-8?q?67)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CachyOS v3 fails to run pacman while on Amazon Linux 2... causing issues with running our hosted version on ECS Exact errors: ```bash [root@2b6cbba9d746 /]# sudo pacman -Syu vim error: failed to initialize alpm library: (root: /, dbpath: /var/lib/pacman/) could not find or read directory ``` --- containers/runner.Containerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/containers/runner.Containerfile b/containers/runner.Containerfile index 9757c244..66e9cce8 100644 --- a/containers/runner.Containerfile +++ b/containers/runner.Containerfile @@ -1,5 +1,5 @@ # Container build arguments # -ARG BASE_IMAGE=docker.io/cachyos/cachyos-v3:latest +ARG BASE_IMAGE=docker.io/cachyos/cachyos:latest #****************************************************************************** # nestri-server-builder @@ -71,10 +71,10 @@ FROM ${BASE_IMAGE} AS runtime ## Install Graphics, Media, and Audio packages ## RUN sed -i '/#\[multilib\]/,/#Include = \/etc\/pacman.d\/mirrorlist/ s/#//' /etc/pacman.conf && \ sed -i "s/#Color/Color/" /etc/pacman.conf && \ - pacman --noconfirm -Sy archlinux-keyring && \ + pacman --noconfirm -Syu archlinux-keyring && \ dirmngr /dev/null 2>&1 && \ # Install mesa-git before Steam for simplicity - pacman --noconfirm -Sy mesa-git && \ + pacman --noconfirm -Sy mesa && \ # Install Steam pacman --noconfirm -Sy steam steam-native-runtime && \ # Clean up pacman cache