fix chroot creation for aarch64

This commit is contained in:
Tobias Powalowski 2023-06-19 09:27:06 +02:00
parent 02eb723db6
commit 847aaa7157

View file

@ -44,6 +44,8 @@ echo "Downloading archlinux ${_ARCH}..."
bsdtar -xf "${_ARCH_VERSION}" -C "${1}" bsdtar -xf "${_ARCH_VERSION}" -C "${1}"
echo "Removing installation tarball..." echo "Removing installation tarball..."
rm "${_ARCH_VERSION}" 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 _generate_keyring "${1}" || exit 1
_fix_network "${1}" _fix_network "${1}"
# update container to latest packages # update container to latest packages