#! /bin/bash set -ex if ! [ -d chroot ]; then mkdir chroot debootstrap --arch amd64 testing chroot http://http.debian.net/debian/ fi if ! [ -e chroot/usr/sbin/grub-mkconfig ]; then chroot chroot <