mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-08 17:31:38 +00:00
Merge branch 'drop-more-packages' into ubuntu/master
* drop-more-packages: Avoid purging packages for ubuntu-cpc
This commit is contained in:
commit
7647b027b9
@ -369,21 +369,24 @@ EOF
|
|||||||
# done in chroot hooks.
|
# done in chroot hooks.
|
||||||
if [ -z "$PASSES" ]; then
|
if [ -z "$PASSES" ]; then
|
||||||
if [ "${SUBPROJECT:-}" = minimized ]; then
|
if [ "${SUBPROJECT:-}" = minimized ]; then
|
||||||
# force removal of initramfs-tools, which we assert is not
|
# ubuntu-cpc has moved to using ubuntu-cloud-minimal seed
|
||||||
# required for any minimized images but is still pulled in by
|
# for minimized images, so don't need these purges anymore.
|
||||||
# default
|
if [ "$PROJECT" != ubuntu-cpc ]; then
|
||||||
# also remove landscape-common, which is heavyweight and
|
# force removal of initramfs-tools, which we assert is not
|
||||||
# in the server seed only to provide /etc/motd content which
|
# required for any minimized images but is still pulled in by
|
||||||
# would only be seen by humans
|
# default
|
||||||
Chroot chroot "env DEBIAN_FRONTEND=noninteractive \
|
# also remove landscape-common, which is heavyweight and
|
||||||
apt-get -y purge initramfs-tools busybox-initramfs \
|
# in the server seed only to provide /etc/motd content which
|
||||||
landscape-common"
|
# would only be seen by humans
|
||||||
# and if initramfs-tools was configured before our kernel,
|
Chroot chroot "env DEBIAN_FRONTEND=noninteractive \
|
||||||
# /etc/kernel/postinst.d/initramfs-tools will have created
|
apt-get -y purge initramfs-tools busybox-initramfs \
|
||||||
# an initramfs despite the generic dpkg-divert; so remove it
|
landscape-common"
|
||||||
# here.
|
# and if initramfs-tools was configured before our kernel,
|
||||||
rm -f chroot/boot/initrd.img-*
|
# /etc/kernel/postinst.d/initramfs-tools will have created
|
||||||
|
# an initramfs despite the generic dpkg-divert; so remove it
|
||||||
|
# here.
|
||||||
|
rm -f chroot/boot/initrd.img-*
|
||||||
|
fi
|
||||||
# temporary workaround: don't remove linux-base which
|
# temporary workaround: don't remove linux-base which
|
||||||
# may have no other reverse-depends currently
|
# may have no other reverse-depends currently
|
||||||
Chroot chroot "env DEBIAN_FRONTEND=noninteractive \
|
Chroot chroot "env DEBIAN_FRONTEND=noninteractive \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user