qemu/debian/qemu-debootstrap

16 lines
710 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# it was qemu-debootstrap - setup qemu syscall emulation in a debootstrap chroot
# since kernel binfmt-misc support F flag for the interpreter and we use it,
# there is no need to copy qemu-user binfmt interpreter binary to the chroot,
# so regular debootstrap can be used just fine without --foreign, since all
# commands inside the chroot will just run using qemu from binfmt-misc subsystem.
if ! which debootstrap >/dev/null 2>/dev/null; then
echo "E: debootstrap isn't found in \$PATH, is debootstrap package installed?" >&2
exit 1
fi
echo "W: qemu-debootstrap is deprecated. Please use regular debootstrap directly" >&2
echo "I: Running command: debootstrap $*" >&2
exec debootstrap "$@"