Clean packages more thoroughly
This commit is contained in:
parent
205f72803a
commit
ae86fac03e
@ -5,3 +5,4 @@ sources
|
||||
user-config
|
||||
oobe
|
||||
fast-dpkg
|
||||
apt-clean
|
7
mods/apt-clean/data/etc/apt/apt.conf.d/99clean
Normal file
7
mods/apt-clean/data/etc/apt/apt.conf.d/99clean
Normal 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";
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user