From e7c4acc158506ba66a357cbb5eadace357b50be9 Mon Sep 17 00:00:00 2001
From: Oliver Grawert <ogra@ubuntu.com>
Date: Thu, 30 May 2013 12:15:42 +0200
Subject: [PATCH] adjust naming of the touch bootimg files so cdimage picks
 them up for publishing

---
 debian/changelog      | 6 ++++++
 live-build/auto/build | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c9e24134..2bc3c25f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+livecd-rootfs (2.145) UNRELEASED; urgency=low
+
+  * adjust naming of the bootimg files so cdimage picks them up for publishing
+
+ -- Oliver Grawert <ogra@ubuntu.com>  Thu, 30 May 2013 12:14:38 +0200
+
 livecd-rootfs (2.144) saucy; urgency=low
 
   * Clean up subarch loop for touch subarches to skip unwanted deps.
diff --git a/live-build/auto/build b/live-build/auto/build
index 8e8dd38e..969ed20a 100755
--- a/live-build/auto/build
+++ b/live-build/auto/build
@@ -433,7 +433,8 @@ if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
 		Chroot chroot "env FLASH_KERNEL_SKIP=1 update-initramfs -k ${kver} -c -v"
 		Chroot chroot "abootimg --create /boot/bootimg-${subarch}.img -f ${bootimgcfg} -r /boot/initrd.img-${kver} -k /boot/vmlinuz-${kver}"
 
-		cp "chroot/boot/bootimg-${subarch}.img" "$PREFIX-${subarch}.bootimg"
+		cp "chroot/boot/bootimg-${subarch}.img" "$PREFIX.bootimg-${subarch}"
+		ln -sf "$PREFIX.bootimg-${subarch}" "$PREFIX.bootimg"
 
 		Chroot chroot "apt-get -y purge $kpkg"
 	done