diff -Nru livecd-rootfs-2.301~ppa12/debian/changelog livecd-rootfs-2.301~ppa13/debian/changelog
--- livecd-rootfs-2.301~ppa12/debian/changelog 2015-07-07 06:13:38.000000000 -0300
+++ livecd-rootfs-2.301~ppa13/debian/changelog 2015-07-08 12:40:53.000000000 -0300
@@ -1,3 +1,10 @@
+livecd-rootfs (2.301~ppa13) vivid; urgency=medium
+
+ * Hash the kernel/initrd to provide updates of hardware.yaml when
+ they change.
+
+ -- Sergio Schvezov <sergio.schvezov@canonical.com> Wed, 08 Jul 2015 12:39:54 -0300
+
livecd-rootfs (2.301~ppa12) vivid; urgency=medium
* add libc6:i386 installation as a hook for ubuntu-core amd64 images
diff -Nru livecd-rootfs-2.301~ppa12/live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary livecd-rootfs-2.301~ppa13/live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary
--- livecd-rootfs-2.301~ppa12/live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary 2015-07-01 12:40:11.000000000 -0300
+++ livecd-rootfs-2.301~ppa13/live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary 2015-07-08 12:37:43.000000000 -0300
@@ -34,15 +34,18 @@
if [ -e vmlinu? ] && [ -e initrd.img ]; then
cp -ar --parent vmlinu? initrd.img $TMPDIR/assets
- cp -ar --parent vmlinu? initrd.img $TMPDIR/assets
fi
)
# create hardware.yaml for u-boot
# this assumes armh == u-boot
# and all others grub
(
+vmlinuz_hash=$(md5sum $TMPDIR/assets/vmlinuz| cut -f1 -d\ )
+initrd_hash=$(md5sum $TMPDIR/assets/initrd.img| cut -f1 -d\ )
+
# common bits
cat > $TMPDIR/hardware.yaml << EOF
+hashes: $vmlinux_hash-$initrd_hash
kernel: assets/vmlinuz
initrd: assets/initrd.img
partition-layout: system-AB