#!/usr/bin/bash set -e cd bootstrap-chroot CHROOT_PATH=$(pwd) echo "Cleaning up chroot mounts..." umount $CHROOT_PATH/proc umount $CHROOT_PATH/sys umount $CHROOT_PATH/dev/pts umount $CHROOT_PATH/dev umount $CHROOT_PATH/run echo "Deleting chroot..." cd ../ rm -fr bootstrap-chroot echo "Done";