mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-13 22:28:27 +00:00
Various fixes from code review.
Cleaning indices; removing superfluous apt-get update; adding debug messages; adding better output name
This commit is contained in:
parent
d1c8c42d9c
commit
5d425edb86
@ -1,9 +1,11 @@
|
||||
#!/bin/bash -ex
|
||||
#!/bin/bash -eux
|
||||
# vi: ts=4 expandtab
|
||||
#
|
||||
# Generate KVM images
|
||||
# Generate KVM image
|
||||
#
|
||||
|
||||
echo "Building KVM image"
|
||||
|
||||
case ${SUBPROJECT:-} in
|
||||
minimized)
|
||||
echo "Skipping minimized $0 builds"
|
||||
@ -38,7 +40,6 @@ cleanup_kvm() {
|
||||
}
|
||||
trap cleanup_kvm EXIT
|
||||
|
||||
chroot ${mount_d} apt-get update
|
||||
|
||||
divert_grub "${mount_d}"
|
||||
replace_kernel ${mount_d} "linux-kvm"
|
||||
@ -55,5 +56,9 @@ env DEBIAN_FRONTEND=noninteractive chroot "${mount_d}" apt-get \
|
||||
env DEBIAN_FRONTEND=noninteractive chroot "${mount_d}" rm \
|
||||
-rf /boot/initrd.img-* /boot/initrd.img
|
||||
|
||||
create_manifest ${mount_d} livecd.ubuntu-cpc.kvm.manifest
|
||||
convert_to_qcow2 binary/boot/disk-kvm.ext4 livecd.ubuntu-cpc.kvm.img
|
||||
# Remove indices
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user