live-iso-kde/chroot_scripts/3-download-pool.sh
Ward from fusion-voyager-3 e1ac172065 comment checker
2024-08-01 17:32:06 +03:00

23 lines
399 B
Bash
Executable File

#! /bin/bash
set -e
export DEBIAN_FRONTEND="noninteractive"
touch /chroot_scripts/pool_list
for pool_list in /chroot_scripts/pool-lists/*.list
do
for pkg in $(cat $pool_list)
do
if [[ $pkg != "#"* ]]
then
echo $pkg >> /chroot_scripts/pool_list
fi
done
done
mkdir -p /cdrom/pool/main/
pushd /cdrom/pool/main/
apt-get download --yes $(cat /chroot_scripts/pool_list | tr "\n" " ")
popd