From 2ca004d056716ec04b569a7b7b614c3476cd62e6 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 15 Dec 2025 11:07:31 +0100 Subject: [PATCH] fix(arch/dependencies): initialize pacman keyring before package installation - Added pacman-key initialization to ensure keyring is properly set up before installing packages. - This prevents errors related to missing secret keys during package signing. https://chatgpt.com/share/693fddec-3800-800f-9ad8-6f2d3cd90cc6 --- scripts/installation/arch/dependencies.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/installation/arch/dependencies.sh b/scripts/installation/arch/dependencies.sh index fd88a74..35ee23e 100755 --- a/scripts/installation/arch/dependencies.sh +++ b/scripts/installation/arch/dependencies.sh @@ -6,6 +6,13 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" echo "[arch/dependencies] Installing Arch build dependencies..." pacman -Syu --noconfirm + +if ! pacman-key --list-sigs &>/dev/null; then + echo "[arch/dependencies] Initializing pacman keyring..." + pacman-key --init + pacman-key --populate archlinux +fi + pacman -S --noconfirm --needed \ base-devel \ git \