Ubuntu Pastebin

Paste from sergiusens at Wed, 8 Jul 2015 15:42:26 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
Download as text