mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-18 15:11:10 +00:00
Remove crufty files after minimize-manual
minimize-manual would be creating those files again, and other parts may be creating them, so best to do the cleanup at the very end. LP: #1826377
This commit is contained in:
parent
5566c26c63
commit
82870b1185
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
livecd-rootfs (2.542.2) UNRELEASED; urgency=medium
|
||||
|
||||
* Remove crufty files after minimize-manual (LP: #1826377)
|
||||
|
||||
-- Julian Andres Klode <juliank@ubuntu.com> Thu, 25 Apr 2019 11:50:45 +0200
|
||||
|
||||
livecd-rootfs (2.542.1) cosmic; urgency=medium
|
||||
|
||||
[ Cody Shepherd ]
|
||||
|
@ -259,9 +259,6 @@ EOF
|
||||
apt-get -y --purge autoremove"
|
||||
fi
|
||||
|
||||
# remove crufty files that shouldn't be left in an image
|
||||
rm -f chroot/var/cache/debconf/*-old chroot/var/lib/dpkg/*-old
|
||||
Chroot chroot apt clean
|
||||
if [ "${PROJECT}:${SUBPROJECT:-}" = "ubuntu-base:minimized" ]; then
|
||||
# Save even more size by removing apt lists (that are currently removed
|
||||
# downstream anyway)
|
||||
@ -452,6 +449,10 @@ EOF
|
||||
|
||||
/usr/share/livecd-rootfs/minimize-manual chroot
|
||||
|
||||
# remove crufty files that shouldn't be left in an image
|
||||
rm -f chroot/var/cache/debconf/*-old chroot/var/lib/dpkg/*-old
|
||||
Chroot chroot apt clean
|
||||
|
||||
lb binary "$@"
|
||||
touch binary.success
|
||||
) 2>&1 | tee binary.log
|
||||
|
Loading…
x
Reference in New Issue
Block a user