From de01cb8c1aa2f6699faf9ea49cbac2dca9f92e68 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 14 Dec 2016 07:08:25 +0000 Subject: Document how to use debootstrap with foreign architectures. --- en/appendix/chroot-install.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'en') diff --git a/en/appendix/chroot-install.xml b/en/appendix/chroot-install.xml index 9ddcf92b5..69e406c7a 100644 --- a/en/appendix/chroot-install.xml +++ b/en/appendix/chroot-install.xml @@ -191,6 +191,9 @@ in the debootstrap command: /mnt/debinst http://ftp.us.debian.org/debian +If the target architecture is different than the host, you should add the +--foreign option. + @@ -205,6 +208,14 @@ Now you've got a real &debian; system, though rather lean, on disk. # LANG=C.UTF-8 chroot /mnt/debinst /bin/bash +If the target architecture is different from the host, +you will need to first copy qemu-user-static to the new host: + + +# cp /usr/bin/qemu-ARCH-static /mnt/debinst/usr/bin +# LANG=C.UTF-8 chroot /mnt/debinst /bin/bash + + After chrooting you may need to set the terminal definition to be compatible with the &debian; base system, for example: @@ -215,6 +226,13 @@ compatible with the &debian; base system, for example: Depending on the value of TERM, you may have to install the ncurses-term package to get support for it. +If the target architecture is different from the host, +you need to finish the multi-stage boot strap: + + +/debootstrap/debootstrap --second-stage + + -- cgit v1.2.3