From dccf0147eec91a2639dd149559050afcf99bed0c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 4 Dec 2023 11:17:56 +0000 Subject: [PATCH] images/archlinux: refresh pacman index before installing yay Otherwise we get this: + chroot root sudo -u build -g build /bin/bash -c 'cd /home/build && cd yay && env GOCACHE=/tmp/cache makepkg -si --noconfirm --skippgpcheck' ==> Making package: yay 12.2.0-1 (Mon Dec 4 09:06:25 2023) ==> Checking runtime dependencies... warning: database file for 'multilib' does not exist (use '-Sy' to download) ==> Checking buildtime dependencies... warning: database file for 'multilib' does not exist (use '-Sy' to download) ==> Installing missing dependencies... warning: database file for 'multilib' does not exist (use '-Sy' to download) error: failed to prepare transaction (could not find database) ==> ERROR: 'pacman' failed to install missing dependencies. ==> Missing dependencies: -> go>=1.19 ==> ERROR: Could not resolve all dependencies. --- images/archlinux/genimg | 1 + 1 file changed, 1 insertion(+) diff --git a/images/archlinux/genimg b/images/archlinux/genimg index fa0861c..58e55ab 100755 --- a/images/archlinux/genimg +++ b/images/archlinux/genimg @@ -67,6 +67,7 @@ ln -s /dev/null $root/etc/pacman.d/hooks/90-linux.hook run_root pacman-key --init run_root pacman-key --populate archlinux +run_root pacman -Sy sed -i 's/#en_US.UTF-8/en_US.UTF-8/' $root/etc/locale.gen run_root locale-gen -- 2.38.5