addition to make debian restores faster
This commit is contained in:
parent
16b00f58ee
commit
35880be868
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue