From 1777636695574f44892ab1cd2bae1d2dc55024b4 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 30 May 2022 18:59:57 +0200 Subject: [PATCH] fix pacman.conf for new repository --- usr/bin/archboot-aarch64-create-container.sh | 1 + usr/lib/archboot/container.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/bin/archboot-aarch64-create-container.sh b/usr/bin/archboot-aarch64-create-container.sh index 8050d3f4b..f2410f434 100755 --- a/usr/bin/archboot-aarch64-create-container.sh +++ b/usr/bin/archboot-aarch64-create-container.sh @@ -27,6 +27,7 @@ if [[ "${_RUNNING_ARCH}" == "aarch64" ]]; then fi if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then _aarch64_pacman_chroot "${1}" || exit 1 + _create_pacman_conf "${1}" _aarch64_install_base_packages "${1}" || exit 1 _aarch64_install_archboot "${1}" || exit 1 _fix_groups "${1}" diff --git a/usr/lib/archboot/container.sh b/usr/lib/archboot/container.sh index b51fd35b9..ae702b221 100644 --- a/usr/lib/archboot/container.sh +++ b/usr/lib/archboot/container.sh @@ -95,7 +95,7 @@ _prepare_pacman() { _create_pacman_conf() { if [[ -z "${_INSTALL_SOURCE}" ]]; then echo "Use default pacman.conf ..." - _PACMAN_CONF="/etc/pacman.conf" + _PACMAN_CONF="${1}/etc/pacman.conf" echo "[archboot_repo]" >> "${_PACMAN_CONF}" echo "Server = https://pkgbuild.com/~tpowa/archboot-repo" >> "${_PACMAN_CONF}" else