lxc-debian: allow to specify a binfmt interpreter
lxc-debian: allow to specify a binfmt interpreter

If you specify an interpreter path with "-I" or "--interpreter-path",
the architecture of the debian container can differ from the one of
the host.

Before creating the container, binfmt must be configured on the host:
the script checks the name of the interpreter in /proc/sys/fs/binfmt_misc/
to know where to install it in the container.

To create a MIPS container on an x86_64 host:

$ cat /proc/sys/fs/binfmt_misc/qemu-mips
enabled
interpreter //qemu-mips
flags: OC
offset 0
magic 7f454c4601020100000000000000000000020008
mask ffffffffffffff00fffffffffffffffffffeffff

$ sudo lxc-create -n virtmips-stretch -t debian -- \
                 --arch=mips \
                 --interpreter-path=./mips-linux-user/qemu-mips \
                 --mirror=http://ftp.debian.org/debian \
                 --release=stretch

Signed-off-by: Laurent Vivier <f1b010126f61b5c59e7d5eb42c5c68f6105c5914@vivier.eu>

hfuCN/lxc,cjwatson/lxc,LynxChaus/lxc,federicobriata/lxc,aeris/lxc,ysbnim/lxc,aeris/lxc,hallyn/lxc,ysbnim/lxc,GreatFruitOmsk/lxc,ysbnim/lxc,cjwatson/lxc,ss1h2a3tw/lxc,hallyn/lxc,thmo/lxc,terceiro/lxc,aeris/lxc,hfuCN/lxc,GreatFruitOmsk/lxc,GreatFruitOmsk/lxc,federicobriata/lxc,caglar10ur/lxc,ss1h2a3tw/lxc,thmo/lxc,terceiro/lxc,ss1h2a3tw/lxc,LynxChaus/lxc,cjwatson/lxc,LynxChaus/lxc,hallyn/lxc,caglar10ur/lxc,hfuCN/lxc,federicobriata/lxc,thmo/lxc,terceiro/lxc,caglar10ur/lxc