Clean packages more thoroughly

This commit is contained in:
Fierelier 2022-09-12 08:48:57 +02:00
parent 205f72803a
commit ae86fac03e
4 changed files with 12 additions and 2 deletions

View File

@ -5,3 +5,4 @@ sources
user-config
oobe
fast-dpkg
apt-clean

View File

@ -0,0 +1,7 @@
# Remove downloaded .deb files after installation by apt-get
APT::Keep-Downloaded-Packages "false";
APT::Clean-Installed "true";
# Remove downloaded .deb files after installation by apt
Binary::apt::APT::Keep-Downloaded-Packages "false";
Binary::apt::APT::Clean-Installed "true";

View File

@ -102,7 +102,8 @@ while true; do
# Remove live-specific packages
echo "Removing live-specific packages ..."
wdvn-chroot "/media/install" apt -y remove live-boot live-boot-initramfs-tools
wdvn-chroot "/media/install" update-initramfs.orig.initramfs-tools -u
wdvn-chroot "/media/install" apt -y autoremove
wdvn-chroot "/media/install" update-initramfs -u
rm "/media/install/bin/login"
mv "/media/install/bin/login.oobe" "/media/install/bin/login"

View File

@ -11,6 +11,7 @@ fi
echo "apt -y install $WDVN_PACKAGES_DL
apt -y remove $WDVN_PACKAGES_REMOVE
apt -y autoremove
apt -y clean
" >>"$1/oobe/setupComplete/50-packages"
chmod +x "$1/oobe/setupComplete/50-packages"