Merge lp:~sergiusens/livecd-rootfs/no-walinuxagent into lp:livecd-rootfs

Proposed by Sergio Schvezov on 2015-06-25
Status: Merged
Approved by: Oliver Grawert on 2015-06-25
Approved revision: 1154
Merged at revision: 1153
Proposed branch: lp:~sergiusens/livecd-rootfs/no-walinuxagent
Merge into: lp:livecd-rootfs
Diff against target: 105 lines (+4/-58)
3 files modified
live-build/auto/config (+0/-6)
live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary (+4/-26)
live-build/ubuntu-desktop-next/hooks/500-move-kernel-to-device-tar.binary (+0/-26)
To merge this branch: bzr merge lp:~sergiusens/livecd-rootfs/no-walinuxagent
Reviewer Review Type Date Requested Status
Oliver Grawert 2015-06-25 Approve on 2015-06-25
Review via email: mp+262963@code.launchpad.net
To post a comment you must log in.
Oliver Grawert (ogra) wrote :

looks fine !

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'live-build/auto/config'
2--- live-build/auto/config 2015-06-10 13:09:50 +0000
3+++ live-build/auto/config 2015-06-25 11:39:23 +0000
4@@ -386,13 +386,7 @@
5 #add_task install minimal
6 add_task install ubuntu-core
7
8- # add special azure package
9 case $ARCH in
10- amd64)
11- # will be removed later when the azure
12- # specific device tarfile is created
13- add_package install walinuxagent
14- ;;
15 i386)
16 # efi support can go once the task
17 # header is available for grub-efi-ia32-bin
18
19=== modified file 'live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary'
20--- live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary 2015-06-11 15:52:29 +0000
21+++ live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary 2015-06-25 11:39:23 +0000
22@@ -71,28 +71,10 @@
23 tar -c -z -f $HERE/device.tar.gz system assets hardware.yaml
24 )
25
26-# now build the azure device tarball by adding walinuxagent
27-if [ -e binary/boot/filesystem.dir/var/lib/dpkg/info/walinuxagent.list ];
28-then
29-(
30- cd binary/boot/filesystem.dir
31- while read line; do
32- line=$(echo $line |cut -d/ -f2-)
33- if [ -e "$line" ] && [ ! -d "$line" ]; then
34- cp -ar --parent $line $TMPDIR/system
35- fi
36- done < var/lib/dpkg/info/walinuxagent.list
37- # created by walinuxagent postinst/dh-systemd
38- cp -ar --parent var/lib/systemd/deb-systemd-helper-enabled/walinuxagent* $TMPDIR/system
39- cp -ar --parent etc/systemd/system/multi-user.target.wants/walinuxagent* $TMPDIR/system
40- mkdir -p $TMPDIR/system/var/lib/waagent
41-)
42-# and tar it up
43-(
44- cd $TMPDIR
45- tar -c -z -f $HERE/device-azure.tar.gz system assets hardware.yaml
46-)
47-fi
48+# now build the azure device tarball
49+# this should go away once we have a custom grub.cfg for azure
50+cp $HERE/device.tar.gz $HERE/device-azure.tar.gz
51+
52 rm -rf $TMPDIR
53
54 # remove files from the root filesystem
55@@ -105,8 +87,4 @@
56 rm -f vmlinu?
57 rm -rf lib/modules
58 rm -rf lib/firmware
59- # remove walinuxagent
60- if [ -e var/lib/dpkg/info/walinuxagent.list ]; then
61- chroot . dpkg --purge walinuxagent || true
62- fi
63 )
64
65=== modified file 'live-build/ubuntu-desktop-next/hooks/500-move-kernel-to-device-tar.binary'
66--- live-build/ubuntu-desktop-next/hooks/500-move-kernel-to-device-tar.binary 2015-06-11 15:52:29 +0000
67+++ live-build/ubuntu-desktop-next/hooks/500-move-kernel-to-device-tar.binary 2015-06-25 11:39:23 +0000
68@@ -71,28 +71,6 @@
69 tar -c -z -f $HERE/device.tar.gz system assets hardware.yaml
70 )
71
72-# now build the azure device tarball by adding walinuxagent
73-if [ -e binary/boot/filesystem.dir/var/lib/dpkg/info/walinuxagent.list ];
74-then
75-(
76- cd binary/boot/filesystem.dir
77- while read line; do
78- line=$(echo $line |cut -d/ -f2-)
79- if [ -e "$line" ] && [ ! -d "$line" ]; then
80- cp -ar --parent $line $TMPDIR/system
81- fi
82- done < var/lib/dpkg/info/walinuxagent.list
83- # created by walinuxagent postinst/dh-systemd
84- cp -ar --parent var/lib/systemd/deb-systemd-helper-enabled/walinuxagent* $TMPDIR/system
85- cp -ar --parent etc/systemd/system/multi-user.target.wants/walinuxagent* $TMPDIR/system
86- mkdir -p $TMPDIR/system/var/lib/waagent
87-)
88-# and tar it up
89-(
90- cd $TMPDIR
91- tar -c -z -f $HERE/device-azure.tar.gz system assets hardware.yaml
92-)
93-fi
94 rm -rf $TMPDIR
95
96 # remove files from the root filesystem
97@@ -105,8 +83,4 @@
98 rm -f vmlinu?
99 rm -rf lib/modules
100 rm -rf lib/firmware
101- # remove walinuxagent
102- if [ -e var/lib/dpkg/info/walinuxagent.list ]; then
103- chroot . dpkg --purge walinuxagent || true
104- fi
105 )

Subscribers

People subscribed via source and target branches