forked from images/live-iso-gnome
23 lines
433 B
Bash
Executable File
23 lines
433 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
export DEBIAN_FRONTEND="noninteractive"
|
|
|
|
touch /chroot_scripts/rem_list
|
|
|
|
for rem_list in /chroot_scripts/rem-lists/*.list
|
|
do
|
|
for pkg in $(cat $rem_list)
|
|
do
|
|
if [[ $pkg != "#"* ]]
|
|
then
|
|
echo $pkg >> /chroot_scripts/rem_list
|
|
fi
|
|
done
|
|
done
|
|
|
|
apt-get purge --yes --option Dpkg::Options::="--force-confnew" --option Dpkg::Options::="--force-overwrite" $(cat /chroot_scripts/rem_list | tr "\n" " ") || true
|
|
|
|
|