mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-13 20:21:19 +00:00
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.
This commit is contained in:
parent
08a5fc58ba
commit
54427d4440
7
debian/changelog
vendored
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
|
||||
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 <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"
|
||||
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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user