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