[arch-general] How to cross-pacstrap for other architecture

Stefan Göbel arch-ml at gtol.de
Sat Apr 24 16:27:08 UTC 2021


On 24.04.21 17:41, Uwe Sauter via arch-general wrote:
> I've tried running 'pacstrap -C pacman.aarch64.conf /mnt base' where
> pacman.aarch64.conf is extracted from the Arch Linux Arm installation
> archive but after the packages are extracted, pacman tries to run
> something inside the installation environment which fails due to the
> mismatch in architectures.

You can setup QEMU to allow running foreign arch stuff, see [1].

I'm not sure if that will allow you to pacstrap an AArch64 root
directly from the host. If it fails, you can grab the Arch Linux ARM
AArch64 image and run pacstrap from within the extracted root dir,
e.g. `arch-chroot </path/to/aarch64/root> pacstrap …`.

[1] <https://wiki.archlinux.org/index.php/QEMU#Chrooting_into_arm/arm64_environment_from_x86_64>


More information about the arch-general mailing list