Adding apt-get autoremove and setting IMAGE_STR

sil2100/enable-universe-none
Pat Viafore 6 years ago
parent 975a620e59
commit 9bf4c7cb52
No known key found for this signature in database
GPG Key ID: 20C739856E05C9D1

@ -890,4 +890,6 @@ replace_kernel () {
update --assume-yes update --assume-yes
env DEBIAN_FRONTEND=noninteractive chroot "${mountpoint}" apt-get \ env DEBIAN_FRONTEND=noninteractive chroot "${mountpoint}" apt-get \
install --assume-yes "${new_kernel}" 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" echo "Building KVM image"
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
case ${SUBPROJECT:-} in case ${SUBPROJECT:-} in
minimized) minimized)
echo "Skipping minimized $0 builds" echo "Skipping minimized $0 builds"
@ -61,4 +61,4 @@ env DEBIAN_FRONTEND=noninteractive chroot "${mount_d}" apt-get \
clean clean
create_manifest ${mount_d} livecd.ubuntu-cpc.disk-kvm.manifest 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