diff --git a/debian/changelog b/debian/changelog index c2b14c84..da65b793 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,13 @@ livecd-rootfs (2.477) UNRELEASED; urgency=medium * Remove boot/grub leftovers from our root squashfs, left behind after grub purge. * Remove apt, debconf cruft files from /var/cache in all our livefses. + * When building minimized cloud images, remove various packages that we + don't want installed by default. Some are tools that aren't needed for + non-interactive use; some are libraries whose reverse-dependencies + will have already been removed; and one, open-vm-tools, should only be + included in images that are targeted to VMWare (which is not the case + for any of the current minimal images), rather than being included + directly in the cloud-image seed. -- Steve Langasek Fri, 13 Oct 2017 14:18:45 -0400 diff --git a/live-build/ubuntu-cpc/hooks/999-cpc-fixes.chroot b/live-build/ubuntu-cpc/hooks/999-cpc-fixes.chroot index 8b22fc8e..9dfbdcaa 100755 --- a/live-build/ubuntu-cpc/hooks/999-cpc-fixes.chroot +++ b/live-build/ubuntu-cpc/hooks/999-cpc-fixes.chroot @@ -136,6 +136,22 @@ if [ -L "${rootd}/boot/initrd.img" ] && [ ! -e "${rootd}/boot/initrd.img" ]; the rm "${rootd}/boot/initrd.img" fi +if [ "${SUBPROJECT:-}" = minimized ]; then + # Remove various packages that we don't want in the minimized images. + # Some of these are tools that don't make sense by default + # non-interactively; some are libraries whose reverse-dependencies + # will have already been removed; open-vm-tools, it's a bug that this + # is in the common cloud seed because this should only be included + # in VMWare guest images, and we know none of the minimized images + # are targeted at VMWare. + _xchroot "${rootd}" env DEBIAN_FRONTEND=noninteractive \ + apt-get -y purge iso-codes xauth pastebinit \ + plymouth open-vm-tools git libdumbnet1 libmspack0 libxmlsec1 \ + libxmlsec1-openssl libxslt1.1 + _xchroot "${rootd}" env DEBIAN_FRONTEND=noninteractive \ + apt-get -y autoremove --purge +fi + #### END COMMON ARCH FUNCTIONS