after the install finished otherwise, this way get any packages marked as manually installed that would otherwise be subject to autoremoval.
The alternative here would be to run the minimize-manual script on the "install" chroot, and not the "live" chroot. But that requires further integration with live-build.
I think we should run
apt-get autoremove -s | sed -nr 's#Remv (.*) \[.*#\1#p' | xargs apt-mark manual
after the install finished otherwise, this way get any packages marked as manually installed that would otherwise be subject to autoremoval.
The alternative here would be to run the minimize-manual script on the "install" chroot, and not the "live" chroot. But that requires further integration with live-build.