apt-get update -y
apt-get upgrade -y
apt-get install -y automake binutils-dev bison build-essential \
+sysvinit-utils sysvinit-core \
ccache clang cmake doxygen dvipng flex gcc git graphviz \
imagemagick libboost-all-dev libboost-python-dev libbz2-dev \
libmpfr-dev libgmp-dev libmotif-dev libreadline-dev \
mount /opt/chroot/$chrootdir/sys
mount /opt/chroot/$chrootdir/tmp
echo "$chrootdir" > /opt/chroot/$chrootdir/etc/debian_chroot
+
# Install apt dependencies in the chroot
chroot /opt/chroot/$chrootdir /bin/bash << EOF
echo Installing necessary apt dependencies in the chroot
apt-get install -y automake binutils-dev build-essential \
ccache cmake gcc git \
libtool \
+sysvinit-core \
+sysvinit-utils \
sudo \
python3 python3-pip \
-python3-setuptools python-dev
-EOF
+python3-setuptools python3-dev
# yeah systemd in a chroot? not very funny joke.
apt-get remove -y systemd