remove _KEYRING

This commit is contained in:
Tobias Powalowski 2022-09-22 21:20:47 +02:00
parent 5d5447383a
commit ef50910de3
6 changed files with 1 additions and 6 deletions

View file

@ -3,7 +3,6 @@
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/container.sh
_ARCHBOOT="archboot-arm"
_KEYRING="archlinuxarm"
[[ -z "${1}" ]] && _usage
_parameters "$@"
_root_check

View file

@ -5,7 +5,6 @@ _ARCH="aarch64"
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/container.sh
_LATEST_ARM64="http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz"
_KEYRING="archlinuxarm"
_usage () {
echo "CREATE AARCH64 PACMAN CHROOT"

View file

@ -3,7 +3,6 @@
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/container.sh
_ARCHBOOT="archboot-riscv"
_KEYRING="archlinux"
[[ -z "${1}" ]] && _usage
_parameters "$@"
_root_check

View file

@ -6,7 +6,6 @@ _ARCH="riscv64"
. /usr/lib/archboot/container.sh
_RISCV64_VERSION="archriscv-20220727"
_LATEST_RISCV64="https://archriscv.felixc.at/images/${_RISCV64_VERSION}.tar.zst"
_KEYRING="archlinux"
_usage () {
echo "CREATE RISCV64 PACMAN CHROOT"

View file

@ -3,7 +3,6 @@
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/container.sh
_ARCHBOOT="archboot"
_KEYRING="archlinux"
[[ -z "${1}" ]] && _usage
_parameters "$@"
_root_check

View file

@ -70,7 +70,7 @@ _generate_keyring() {
# generate pacman keyring
echo "Generate pacman keyring in container ..."
systemd-nspawn -q -D "${1}" pacman-key --init >/dev/null 2>&1
systemd-nspawn -q -D "${1}" pacman-key --populate "${_KEYRING}" >/dev/null 2>&1
systemd-nspawn -q -D "${1}" pacman-key --populate >/dev/null 2>&1
else
cp -ar /etc/pacman.d/gnupg "${1}"/etc/pacman.d >/dev/null 2>&1
fi