addition to make debian restores faster

This commit is contained in:
kake26 2024-02-22 23:39:30 -06:00
parent 16b00f58ee
commit 35880be868
2 changed files with 11 additions and 0 deletions

View file

@ -37,6 +37,8 @@ function restore_config() {
if [ -f ./exclusions ]; then
exclusions # this runs exclusions
fi
mkfast_deb # speed up this process
# Novel idea but not good for errors: apt install -y $(cat $aptpkgfile | awk '{print $1}')
apt install -y $(cat $aptpkgfile | awk '{print $1}')
# check for error

View file

@ -9,3 +9,12 @@ function exclusions () {
grep -vf exclusions installed_packages.orig > installed_packages
}
function mkfast_deb () {
# we must check for packages already installed so we don't waste time reinstalling them
dpkg --get-selections > installed_packages_fast
grep -vf installed_packages_fast installed_packages > installed_packages
}