Your patch assumes a qemu-based cross-debootstrap if HOST_ARCH is not the same as ARCH. Did you make sure this does not clash with debootstrap's --foreign option? Michael