20 lines
378 B
Bash
Executable File
20 lines
378 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
export DEBIAN_FRONTEND="noninteractive"
|
|
|
|
touch /etc/chroot_scripts/pool_list
|
|
|
|
for pool_list in /etc/chroot_scripts/pool-lists/*.list
|
|
do
|
|
for pkg in $(cat $pool_list)
|
|
do
|
|
echo $pkg >> /etc/chroot_scripts/pool_list
|
|
done
|
|
done
|
|
|
|
mkdir -p /cdrom/pool/main/
|
|
pushd /cdrom/pool/main/
|
|
apt-get download --yes $(cat /etc/chroot_scripts/pool_list | tr "\n" " ")
|
|
popd |