live-iso-gnome/chroot_scripts/3-download-pool.sh

23 lines
399 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 15:56:33 +02:00
touch /chroot_scripts/pool_list
2024-08-01 14:23:17 +02:00
2024-08-01 15:56:33 +02:00
for pool_list in /chroot_scripts/pool-lists/*.list
2024-08-01 14:23:17 +02:00
do
for pkg in $(cat $pool_list)
do
2024-08-01 16:32:06 +02:00
if [[ $pkg != "#"* ]]
then
echo $pkg >> /chroot_scripts/pool_list
fi
2024-08-01 14:23:17 +02:00
done
done
mkdir -p /cdrom/pool/main/
pushd /cdrom/pool/main/
2024-08-01 15:56:33 +02:00
apt-get download --yes $(cat /chroot_scripts/pool_list | tr "\n" " ")
2024-08-01 14:23:17 +02:00
popd