#! /bin/bash set -e export DEBIAN_FRONTEND="noninteractive" touch /chroot_scripts/live_list for live_list in /chroot_scripts/live-lists/*.list do for pkg in $(cat $live_list) do echo $pkg >> /chroot_scripts/live_list done done apt-get install --yes --no-install-recommends --option Dpkg::Options::="--force-confnew" $(cat /chroot_scripts/live_list | tr "\n" " ")