live-iso-gnome/chroot_scripts/2-install-live-lists.sh

23 lines
412 B
Bash
Raw Normal View History

2024-08-01 14:23:17 +02:00
#! /bin/bash
set -e
export DEBIAN_FRONTEND="noninteractive"
2024-08-01 18:16:30 +02:00
touch /chroot_scripts/live_list
2024-08-01 14:23:17 +02:00
2024-08-01 18:16:30 +02:00
for live_list in /chroot_scripts/live-lists/*.list
2024-08-01 14:23:17 +02:00
do
for pkg in $(cat $live_list)
do
2024-08-01 16:32:06 +02:00
if [[ $pkg != "#"* ]]
then
2024-08-01 18:16:30 +02:00
echo $pkg >> /chroot_scripts/live_list
2024-08-01 16:32:06 +02:00
fi
2024-08-01 14:23:17 +02:00
done
done
2024-08-01 18:16:30 +02:00
apt-get install --yes --no-install-recommends --option Dpkg::Options::="--force-confnew" $(cat /chroot_scripts/live_list | tr "\n" " ")
2024-08-01 14:23:17 +02:00