Adding apt-get autoremove and setting IMAGE_STR

sil2100/enable-universe-none
Pat Viafore 6 years ago
parent 5d425edb86
commit 7b2d783047
No known key found for this signature in database
GPG Key ID: 20C739856E05C9D1

@ -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
}

@ -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
convert_to_qcow2 ${derivative_img} livecd.ubuntu-cpc.disk-kvm.img
Loading…
Cancel
Save