1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
391 B

#!/usr/bin/env bash
source /etc/os-release
if [ ! ${ID} == "debian" ]
then
echo "This is only tested on Debian. Please use a VM is necessary."
exit 1
fi
if [ ${EUID} -ne 0 ]
then
echo "Please run as root, tested with \`sudo\`"
exit 1
fi
apt-get update 1>/dev/null
apt-get install -y debootstrap qemu-user-static binfmt-support debian-ports-archive-keyring libguestfs-tools xz-utils