From bfeebc90abc7f3a01c6441d26124b64d4ceb6d8b Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Thu, 13 Dec 2018 11:23:15 +1300 Subject: [PATCH] remove cloud-initramfs-copymods before installing kernel --- live-build/ubuntu-server/hooks/033-kernel-bits.binary | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/live-build/ubuntu-server/hooks/033-kernel-bits.binary b/live-build/ubuntu-server/hooks/033-kernel-bits.binary index af67924d..5ebfd1d9 100644 --- a/live-build/ubuntu-server/hooks/033-kernel-bits.binary +++ b/live-build/ubuntu-server/hooks/033-kernel-bits.binary @@ -47,6 +47,10 @@ for variant in $variants; do mount_overlay "$INSTALLER_ROOT/" "$KERNEL_BITS_OVERLAY/" "$KERNEL_BITS_ROOT/" setup_mountpoint $KERNEL_BITS_ROOT + # Our initramfs hook implements a kind of extreme version of + # cloud-initramfs-copymods, so remove that and prevent duelling hooks + env DEBIAN_FRONTEND=noninteractive chroot $KERNEL_BITS_ROOT apt-get -y remove cloud-initramfs-copymods ubuntu-server || true + # Configure initramfs creation mkdir -p "$KERNEL_BITS_ROOT"/etc/initramfs-tools/conf.d/ if [ -n "$LB_INITRAMFS_COMPRESSION" ]; then