diff --git a/live-build/functions b/live-build/functions index 2bdbb623..ade899f0 100644 --- a/live-build/functions +++ b/live-build/functions @@ -890,4 +890,6 @@ replace_kernel () { update --assume-yes env DEBIAN_FRONTEND=noninteractive chroot "${mountpoint}" apt-get \ install --assume-yes "${new_kernel}" + env DEBIAN_FRONTEND=noninteractive chroot "${mountpoint}" apt-get \ + autoremove --purge --assume-yes } \ No newline at end of file diff --git a/live-build/ubuntu-cpc/hooks.d/base/kvm-image.binary b/live-build/ubuntu-cpc/hooks.d/base/kvm-image.binary index 716d148a..cb98a2b1 100644 --- a/live-build/ubuntu-cpc/hooks.d/base/kvm-image.binary +++ b/live-build/ubuntu-cpc/hooks.d/base/kvm-image.binary @@ -5,7 +5,7 @@ # echo "Building KVM image" - +IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process" case ${SUBPROJECT:-} in minimized) echo "Skipping minimized $0 builds" @@ -61,4 +61,4 @@ env DEBIAN_FRONTEND=noninteractive chroot "${mount_d}" apt-get \ clean create_manifest ${mount_d} livecd.ubuntu-cpc.disk-kvm.manifest -convert_to_qcow2 binary/boot/disk-kvm.ext4 livecd.ubuntu-cpc.disk-kvm.img \ No newline at end of file +convert_to_qcow2 ${derivative_img} livecd.ubuntu-cpc.disk-kvm.img \ No newline at end of file