diff options
author | Samuel Thibault <sthibault@debian.org> | 2016-12-14 07:08:25 +0000 |
---|---|---|
committer | Samuel Thibault <sthibault@debian.org> | 2016-12-14 07:08:25 +0000 |
commit | de01cb8c1aa2f6699faf9ea49cbac2dca9f92e68 (patch) | |
tree | aef4460c976066d5f75b59527cbb8a4480fd2614 | |
parent | 4a03652a50b373476dd61bfa8019f17893dbd549 (diff) | |
download | installation-guide-de01cb8c1aa2f6699faf9ea49cbac2dca9f92e68.zip |
Document how to use debootstrap with foreign architectures.
-rw-r--r-- | debian/changelog | 3 | ||||
-rw-r--r-- | en/appendix/chroot-install.xml | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 0f58a5591..defa65dcb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,9 @@ installation-guide (2016XXXX) UNRELEASED; urgency=medium [ Karsten Merker ] * Update sunxi platform support status (armhf). + [ Baptiste Jammet ] + * Document how to use debootstrap with foreign architectures. + -- Samuel Thibault <sthibault@debian.org> Tue, 22 Nov 2016 23:20:02 +0100 installation-guide (20161031) unstable; urgency=medium 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 <command>debootstrap</command> command: /mnt/debinst http://ftp.us.debian.org/debian </screen></informalexample> +If the target architecture is different than the host, you should add the +<userinput>--foreign</userinput> option. + </para> </sect2> @@ -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 </screen></informalexample> +If the target architecture is different from the host, +you will need to first copy qemu-user-static to the new host: + +<informalexample><screen> +# cp /usr/bin/qemu-ARCH-static /mnt/debinst/usr/bin +# LANG=C.UTF-8 chroot /mnt/debinst /bin/bash +</screen></informalexample> + 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 <classname>ncurses-term</classname> package to get support for it. +If the target architecture is different from the host, +you need to finish the multi-stage boot strap: + +<informalexample><screen> +/debootstrap/debootstrap --second-stage +</screen></informalexample> + </para> <sect3> |