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.
ubuntu/cosmic
Steve Langasek 7 years ago
parent 08a5fc58ba
commit 54427d4440

7
debian/changelog vendored

@ -3,6 +3,13 @@ livecd-rootfs (2.477) UNRELEASED; urgency=medium
* Remove boot/grub leftovers from our root squashfs, left behind after * Remove boot/grub leftovers from our root squashfs, left behind after
grub purge. grub purge.
* Remove apt, debconf cruft files from /var/cache in all our livefses. * 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 <steve.langasek@ubuntu.com> Fri, 13 Oct 2017 14:18:45 -0400 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 13 Oct 2017 14:18:45 -0400

@ -136,6 +136,22 @@ if [ -L "${rootd}/boot/initrd.img" ] && [ ! -e "${rootd}/boot/initrd.img" ]; the
rm "${rootd}/boot/initrd.img" rm "${rootd}/boot/initrd.img"
fi 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 #### END COMMON ARCH FUNCTIONS

Loading…
Cancel
Save