From 847aaa715705444ad587450f2c6188a48dfa06da Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 19 Jun 2023 09:27:06 +0200 Subject: [PATCH] fix chroot creation for aarch64 --- usr/lib/archboot/run/chroot-tarball.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/lib/archboot/run/chroot-tarball.sh b/usr/lib/archboot/run/chroot-tarball.sh index b15b92225..f6b1d4582 100755 --- a/usr/lib/archboot/run/chroot-tarball.sh +++ b/usr/lib/archboot/run/chroot-tarball.sh @@ -44,6 +44,8 @@ echo "Downloading archlinux ${_ARCH}..." bsdtar -xf "${_ARCH_VERSION}" -C "${1}" echo "Removing installation tarball..." rm "${_ARCH_VERSION}" +sed -i -e '/^\[community\]/ { n ; s/^/#/ }' "${1}"/etc/pacman.conf +sed -i -e 's:^\[community\]:#\[community\]:g'"${1}"/etc/pacman.conf _generate_keyring "${1}" || exit 1 _fix_network "${1}" # update container to latest packages