Yes, this is what postinit.sh does anyway. I was not aware of preinit.sh thanks!
I use to check if package were installed with which within a for loop. Something like that might work.
Thanks for making me aware! I am going to try the persist-apt-install script but just haven’t thought of what to install yet! lol