Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
wiki:sbuild-debian [2013/07/10 11:37] – [Using sbuild] neyronwiki:sbuild-debian [2019/11/07 02:08] – [Create a schroot for crossbuilding for another arch] neyron
Line 43: Line 43:
 architecture=amd64 architecture=amd64
 # set the debian mirror to use # set the debian mirror to use
-mirror=http://ftp2.fr.debian.net/debian+mirror=http://ftp2.fr.debian.org/debian
  
 # create the sub-volume for this schroot # create the sub-volume for this schroot
Line 73: Line 73:
 </code> </code>
  
 +===== Create a schroot for crossbuilding for another arch =====
 +
 +First install the latest version of ''qemu_user_static'' (e.g. from sid).
 +
 +<code bash>
 +# set the Debian distribution: sid, wheezy, squeeze...
 +distribution=sid
 +# set the architecture: amd64, i386...
 +architecture=amd64
 +# set the debian mirror to use
 +mirror=http://ftp2.fr.debian.org/debian
 +# create the sub-volume for this schroot
 +btrfs subvolume create /srv/chroot/$distribution-$architecture-sbuild
 +
 +sbuild-createchroot --debootstrap=qemu-debootstrap --arch=$architecture $distribution /srv/chroot/$distribution-$architecture-sbuild $mirror
 +
 +</code>
 +
 +Then see above to finish (switch to btrfs...).
 +
 +In case of problems, hopefully this page may help:
 +https://danielstender.com/blog/qemu-ppc64el-trouble/
  
 ===== Using the schroots! ===== ===== Using the schroots! =====
wiki/sbuild-debian.txt · Last modified: 2020/09/28 15:30 by neyron
Recent changes RSS feed GNU Free Documentation License 1.3 Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki