Updated: reworked style and text, add fix for supported filesystems workaround - aufs works only on jessie or earlier
Used documents and topics:
Install requirements, add user, set distribution, etc. to build chroot and package
Install required packages
$ apt-get install sudo gnupg dirmngr curl sbuild ubuntu-dev-tools qemu-user-static binfmt-support
Recommended to work under user with full
sudo access without password prompting.
sudo needed to install packages and mount chroot, requrement of
You can ignore second line if want every time write password when it asked.
$ sudo useradd -m -s /bin/bash -G sudo,sbuild builder $ sudo bash -c 'echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
Login as builder user and set release variable which we will build chroot for
$ sudo su - builder $ export RELEASE="stretch"
Next 4 steps (till 8th) can …