Ubuntu Pastebin

Paste from ogra at Thu, 7 Apr 2016 14:34:10 +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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
+livecd-rootfs (2.396~ppa5) xenial; urgency=medium
+
+  [ Adam Conrad ]
   * Remove obsolete pvr-omap4 special-casing to simplify configs.
 
- -- Adam Conrad <adconrad@ubuntu.com>  Sun, 03 Apr 2016 02:39:50 -0600
+  [ Oliver Grawert ]
+  * live-build/ubuntu-core/hooks/25-create-generic-initrd.chroot:
+    create a generic initrd inside the snappy os-snap so we do not need the
+    hackish ubuntu-core-generic-initrd package anymore.
+  * 
+
+ -- Oliver Grawert <ogra@ubuntu.com>  Sun, 03 Apr 2016 02:39:50 -0600
 
 livecd-rootfs (2.395) xenial; urgency=medium
 

=== modified file 'live-build/auto/config'
--- live-build/auto/config	2016-04-03 08:41:30 +0000
+++ live-build/auto/config	2016-04-07 13:36:08 +0000
@@ -403,6 +403,10 @@
 			esac
 			OPTS="${OPTS:+$OPTS }--linux-packages=none --initramfs=none"
 
+			# work around lb_chroot_hacks trying to blindly compress
+			# every initrd it finds in /boot
+			export LB_INITRAMFS_COMPRESSION="none"
+
 			# contains the framework definition
 			add_package install ubuntu-core-libs
 

=== added file 'live-build/ubuntu-core/hooks/25-create-generic-initrd.chroot'
--- live-build/ubuntu-core/hooks/25-create-generic-initrd.chroot	1970-01-01 00:00:00 +0000
+++ live-build/ubuntu-core/hooks/25-create-generic-initrd.chroot	2016-04-07 13:44:27 +0000
@@ -0,0 +1,22 @@
+#! /bin/sh
+
+set -ex
+
+IVER="$(dpkg -s initramfs-tools-ubuntu-core | \
+			sed -n '/^Version:/{s/^[^: ]*: \([^: ]*\).*/\1/;p;}')"
+
+# force lzma
+mkdir -p /etc/initramfs-tools/conf.d
+echo "COMPRESS=lzma" >/etc/initramfs-tools/conf.d/snappy-generic-initrd.conf
+
+update-initramfs.REAL -c -kcore-$IVER -v
+
+cd /boot
+ln -s initrd.img-core-$IVER initrd.img-core
+cd -
+
+sha1sum /boot/initrd.img-core >/var/lib/initramfs-tools/core
+
+# for snapcraft backwards compatibility
+mkdir -p /usr/lib/ubuntu-core-generic-initrd
+cp -a /boot/initrd.img-core* /usr/lib/ubuntu-core-generic-initrd/
Download as text