-cat <<'EOF' >> /etc/fstab
-/dev /opt/chroot/coriolis/dev none bind 0 0
-/dev/pts /opt/chroot/coriolis/dev/pts none bind 0 0
-/proc /opt/chroot/coriolis/proc none bind 0 0
-/sys /opt/chroot/coriolis/sys none bind 0 0
-/tmp /opt/chroot/coriolis/tmp none bind 0 0
-EOF
-mkdir -p /opt/chroot/coriolis
-apt install -y debootstrap schroot
-/usr/sbin/debootstrap buster /opt/chroot/coriolis http://ftp.debian.org/debian
-mount /opt/chroot/coriolis/dev
-mount /opt/chroot/coriolis/dev/pts
-mount /opt/chroot/coriolis/proc
-mount /opt/chroot/coriolis/sys
-mount /opt/chroot/coriolis/tmp
-echo "coriolis2" > /opt/chroot/coriolis/etc/debian_chroot
-export MYNAME=`id 1000 | awk '{print $1}' | sed 's/.*(\(.*\))/\1/'`
-export CHU_HOME=/home/$MYNAME
-chroot /opt/chroot/coriolis /bin/bash << EOF
-echo Installing necessary apt dependencies in the chroot
-apt-get update -y
-apt-get upgrade -y
-apt-get install -y automake binutils-dev bison build-essential \
-ccache cmake doxygen dvipng flex gcc git graphviz imagemagick \
-libboost-all-dev libboost-python-dev libbz2-dev libmotif-dev \
-libqwt-dev libtool libx11-dev libxaw7-dev libxml2-dev libxpm-dev \
-libxt-dev python3.7 python3-jinja2 python3-pip python3-setuptools \
-python-dev python-qt4 python-sphinx qt4-dev-tools rapidjson-dev \
-texlive texlive-fonts-extra texlive-lang-french texlive-latex-extra \
-texlive-pictures xfig yosys zlib1g-dev
-
-
-
-useradd -m -p `python -c 'import crypt; print crypt.crypt("1234","Fx")'` -s /bin/bash $MYNAME -k /etc/skel
-echo -e "
-Added user ${MYNAME} with \e[1;91mpassword: 1234\e[0m"
+# Terminal echo colours
+RED='\033[1;91m'
+NC='\033[0m'
+
+# Default name for the new chroot
+chroot_name="coriolis"
+
+# Check if default chroot name should be used or not
+if [ -z $1 ]; then
+ echo "Not provided a chroot name, using default chroot \"$chroot_name\""
+else
+ chroot_name="$1"
+ echo "Using specified chroot name \"$chroot_name\""
+fi