RootFS/mega_install_packages.sh
Ryan Houdek 3fa5b16050 Change how we install packages
First scan the supplied package list for missing packages.
Then install them all in one go rather than one at a time.
Significantly improves rootfs build time
2022-01-26 15:17:19 -08:00

14 lines
346 B
Bash
Executable File

#!/bin/sh
for i in $@
do
if [ -z "$(apt-cache madison $i 2>/dev/null)" ]; then
echo " > Package $i not available on repo."
echo "Package Not Found: $i" >> /Unknown_Packages
else
echo " > Add package $i to the install list"
packages="$packages $i"
fi
done
echo "$packages" #you could comment this.
apt-get -y install $packages