From b5e77864298192792c8dbc2e9b1a292e12657fc9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 23 Jun 2024 18:18:18 +0200 Subject: do not shred the hosts pacman key --- mkimage-arch.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'mkimage-arch.sh') diff --git a/mkimage-arch.sh b/mkimage-arch.sh index 6d43e98..9e13cf6 100755 --- a/mkimage-arch.sh +++ b/mkimage-arch.sh @@ -55,11 +55,8 @@ unset IFS arch="$(uname -m)" case "$arch" in armv*) - if pacman -Q archlinuxarm-keyring >/dev/null 2>&1; then - pacman-key --init - pacman-key --populate archlinuxarm - else - echo "Could not find archlinuxarm-keyring. Please, install it and run pacman-key --populate archlinuxarm" + if ! pacman -Q archlinuxarm-keyring >/dev/null 2>&1; then + echo "Could not find archlinuxarm-keyring. Please, install it" exit 1 fi PACMAN_CONF=$(mktemp ${TMPDIR:-/var/tmp}/pacman-conf-archlinux-XXXXXXXXX) @@ -72,11 +69,8 @@ case "$arch" in DOCKER_IMAGE_NAME="armv${version}h/archlinux" ;; *) - if pacman -Q archlinux32-keyring >/dev/null 2>&1; then - pacman-key --init - pacman-key --populate archlinux32 - else - echo "Could not find archlinux32-keyring. Please, install it and run pacman-key --populate archlinux32" + if ! pacman -Q archlinux32-keyring >/dev/null 2>&1; then + echo "Could not find archlinux32-keyring. Please, install it" exit 1 fi PACMAN_CONF=$(mktemp ${TMPDIR:-/var/tmp}/pacman-conf-archlinux-XXXXXXXXX) -- cgit v1.2.3-70-g09d2