mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 11:21:12 +00:00
Merge lp:~vorlon/livecd-rootfs/minimize-round-two
This commit is contained in:
commit
f384f10867
19
debian/changelog
vendored
19
debian/changelog
vendored
@ -1,3 +1,22 @@
|
||||
livecd-rootfs (2.482) UNRELEASED; urgency=medium
|
||||
|
||||
* Remove boot/grub leftovers from our root squashfs, left behind after
|
||||
grub purge.
|
||||
* Remove apt, debconf, dpkg cruft files from /var/cache and /var/lib in all
|
||||
our livefses.
|
||||
* Pass --cache false to lb config; otherwise we copy around caches of
|
||||
.debs that are never used properly, and which prevent us from emptying
|
||||
/var/cache/apt in images.
|
||||
* 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> Thu, 09 Nov 2017 23:47:23 -0800
|
||||
|
||||
livecd-rootfs (2.481) bionic; urgency=medium
|
||||
|
||||
* The target for x86 ubuntu-core images is VMs, so create them with
|
||||
|
@ -236,6 +236,10 @@ 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 [ -f config/oem-config-preinstalled ]; then
|
||||
|
||||
# This is cargo-culted almost verbatim (with some syntax changes for
|
||||
|
@ -706,6 +706,7 @@ lb config noauto \
|
||||
--initsystem none \
|
||||
--bootloader "$BOOTLOADER" \
|
||||
--initramfs-compression lzma \
|
||||
--cache false \
|
||||
${BOOTAPPEND_LIVE:+--bootappend-live "$BOOTAPPEND_LIVE"} \
|
||||
$OPTS \
|
||||
"$@"
|
||||
|
@ -31,6 +31,7 @@ chroot binary/boot/squashfs.dir chmod +x /usr/sbin/grub-probe
|
||||
env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get --purge remove --assume-yes '^linux-.*' 'linux-base+'
|
||||
env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get --purge remove --assume-yes '^grub-.*'
|
||||
env DEBIAN_FRONTEND=noninteractive chroot binary/boot/squashfs.dir apt-get autoremove --purge --assume-yes
|
||||
rm -rf binary/boot/squashfs.dir/boot/grub
|
||||
chroot binary/boot/squashfs.dir mkdir /lib/modules
|
||||
|
||||
chroot binary/boot/squashfs.dir rm /usr/sbin/grub-probe
|
||||
|
@ -136,6 +136,27 @@ 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-mark auto '^lib.*' '^python*' vim-runtime 2>/dev/null
|
||||
# FIXME: iso-codes is a dep of software-properties and shouldn't be
|
||||
_xchroot "${rootd}" env DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get -y autoremove --purge iso-codes xauth pastebinit \
|
||||
plymouth open-vm-tools git shared-mime-info vim vim-common \
|
||||
console-setup ncurses-term tmux screen policykit-1 \
|
||||
xdg-user-dirs less publicsuffix run-one apport-symptoms \
|
||||
ubuntu-cloudimage-keyring file
|
||||
|
||||
_xchroot "${rootd}" apt clean
|
||||
fi
|
||||
|
||||
#### END COMMON ARCH FUNCTIONS
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user