#!/bin/bash # Detect directory this script is running from, for relative imports DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo "Loading init.sh..." source "$DIR/init.sh" INSTALLDIR="/mnt/testinstall" echo "Creating /mnt/testinstall" [[ -d "$INSTALLDIR" ]] || mkdir -p "$INSTALLDIR" echo "Loading debootstrap" source "$DIR/debootstrap/func.sh" echo "Creating an ubuntu xenial install in $INSTALLDIR" create_debootstrap ubuntu xenial "$INSTALLDIR"