# Create coriolis chroot dir in /opt
mkdir -p /opt/chroot/$chrootdir
-# Install debootstrap and schroot via apt
-apt install -y debootstrap schroot
+
+# Install debootstrap and schroot
+if [ -e /etc/debian_version ]; then
+ # Debian detected: use apt
+ apt install -y debootstrap schroot
+elif [ -e /etc/arch-release ]; then
+ # Arch Linux detected: use pacman
+ pacman -S --needed debootstrap schroot
+fi
+
# Install debian/buster chroot using debootstrap
/usr/sbin/debootstrap buster /opt/chroot/$chrootdir \
http://ftp.uk.debian.org/debian