Merge lp:~rbalint/livecd-rootfs/deps into lp:livecd-rootfs

Proposed by Balint Reczey
Status: Merged
Merged at revision: 1487
Proposed branch: lp:~rbalint/livecd-rootfs/deps
Merge into: lp:livecd-rootfs
Diff against target: 220 lines (+18/-27)
12 files modified
debian/changelog (+8/-0)
debian/control (+10/-1)
live-build/auto/build (+0/-2)
live-build/functions (+0/-7)
live-build/ubuntu-cpc/hooks/032-disk-image.binary (+0/-2)
live-build/ubuntu-cpc/hooks/032-root-squashfs.binary (+0/-2)
live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary (+0/-2)
live-build/ubuntu-cpc/hooks/034-disk-image-ppc64el.binary (+0/-1)
live-build/ubuntu-cpc/hooks/040-qcow2-image.binary (+0/-3)
live-build/ubuntu-cpc/hooks/042-vagrant.binary (+0/-3)
live-build/ubuntu-server/hooks/030-root-squashfs.binary (+0/-2)
live-build/ubuntu-server/hooks/032-installer-squashfs.binary (+0/-2)
To merge this branch: bzr merge lp:~rbalint/livecd-rootfs/deps
Reviewer Review Type Date Requested Status
Steve Langasek Approve
Adam Conrad Pending
Ubuntu Core Development Team Pending
Review via email: mp+324000@code.launchpad.net

Description of the change

Listing all dependencies in d/control instead of installing them at runtime
would make tracking them easier and any breakage would be discovered early,
thanks to autopkgtest being trigggered for changes.

The packages pxz and vmdk-stream-converter are not in main, but since we use them
for generating images they should probably be promoted.

The extra resources needed for the installation of the packages is minimal compared to the needs of an lb config/build run.

To post a comment you must log in.
Revision history for this message
Balint Reczey (rbalint) wrote :

git-remote-bzr broke on zesty, i have to fix this branch

Revision history for this message
Balint Reczey (rbalint) wrote :

Now the branch is fixed and rebased, please comment/merge.

Revision history for this message
Steve Langasek (vorlon) wrote :

LGTM in terms of the mechanics of the change; I like that we are surfacing the hidden dependency on universe packages. I think Adam had comments before on this approach and should have the final say.

review: Approve
Revision history for this message
Adam Conrad (adconrad) wrote :

If the real goal here was to get germinate to pull things in that we should be supporting, Recommends would have worked, and still install-on-demand because buildds don't install recommends by default.

I was initially against this, just cause I dislike having tools that install all the deps for any possible way you can use them, but my carefactor is low for livecd-rootfs in that it's currently only installed on buildds, really.

So, consider this a +0, I guess. I'm not a huge fan, but I also don't feel strongly enough to veto it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2017-06-06 07:15:32 +0000
3+++ debian/changelog 2017-06-14 16:26:38 +0000
4@@ -1,3 +1,11 @@
5+livecd-rootfs (2.447) UNRELEASED; urgency=medium
6+
7+ * Depend on packages in main instead of installing them at runtime
8+ * Depend on pxz and vmdk-stream-converter instead of installing them
9+ at run time
10+
11+ -- Balint Reczey <rbalint@ubuntu.com> Wed, 14 Jun 2017 18:25:32 +0200
12+
13 livecd-rootfs (2.446) artful; urgency=medium
14
15 * Build ubuntu back with tasks. The metapackage switch was due to g++
16
17=== modified file 'debian/control'
18--- debian/control 2017-04-28 20:30:18 +0000
19+++ debian/control 2017-06-14 16:26:38 +0000
20@@ -12,21 +12,30 @@
21 android-tools-fsutils [armhf],
22 apt-utils,
23 debootstrap,
24+ dosfstools,
25 e2fsprogs,
26+ gdisk,
27+ genisoimage,
28 germinate (>= 1.25.1),
29 gnupg,
30 grep-dctrl,
31+ kpartx,
32 live-build (>= 3.0~a57-1ubuntu12~),
33 lsb-release,
34 lzma,
35+ parted,
36 procps,
37+ pxz,
38 python-minimal | python,
39 python3-software-properties,
40+ qemu-utils,
41 rsync,
42 snapd,
43 squashfs-tools (>= 1:3.3-1),
44 sudo,
45- ubuntu-image
46+ ubuntu-image,
47+ vmdk-stream-converter [amd64 i386],
48+ zerofree
49 Suggests: partimage
50 Breaks: ubuntu-defaults-builder (<< 0.32)
51 Description: construction script for the livecd rootfs
52
53=== modified file 'live-build/auto/build'
54--- live-build/auto/build 2017-04-29 01:02:16 +0000
55+++ live-build/auto/build 2017-06-14 16:26:38 +0000
56@@ -17,8 +17,6 @@
57
58 if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then
59 # Use ubuntu-image instead of live-build
60- apt-get install -qqy pxz
61-
62 env SNAPPY_STORE_NO_CDN=1 \
63 ubuntu-image -c edge \
64 -o livecd."$PROJECT".img livecd."$PROJECT".model-assertion
65
66=== modified file 'live-build/functions'
67--- live-build/functions 2017-04-29 03:44:09 +0000
68+++ live-build/functions 2017-06-14 16:26:38 +0000
69@@ -8,8 +8,6 @@
70 loop_raw=
71 backing_img=
72
73-apt-get -qqy install dosfstools gdisk
74-
75 clean_loops() {
76 local kpartx_ret
77 local kpartx_stdout
78@@ -51,7 +49,6 @@
79 }
80
81 mount_image() {
82- apt-get install -qqy kpartx
83 trap clean_loops EXIT
84 backing_img="$1"
85 local rootpart="$2"
86@@ -158,7 +155,6 @@
87
88 # both of these are likely overkill, but it does result in slightly
89 # smaller ext4 filesystem
90- apt-get -qqy install zerofree
91 e2fsck -y -E discard ${rootfs_dev_mapper}
92 zerofree ${rootfs_dev_mapper}
93 fi
94@@ -230,7 +226,6 @@
95 destination="$2"
96 size="${3:-10240}"
97
98- apt-get install -qqy qemu-utils vmdk-stream-converter
99 streamconverter="/usr/share/pyshared/VMDKstream.py"
100 scratch_d=$(mktemp -d)
101 cp ${src} ${scratch_d}/resize.img
102@@ -263,8 +258,6 @@
103 }
104
105 convert_to_qcow2() {
106- apt-get install -qqy qemu-utils
107-
108 src="$1"
109 destination="$2"
110 qemu-img convert -c -O qcow2 -o compat=0.10 "$src" "$destination"
111
112=== modified file 'live-build/ubuntu-cpc/hooks/032-disk-image.binary'
113--- live-build/ubuntu-cpc/hooks/032-disk-image.binary 2017-04-11 21:30:48 +0000
114+++ live-build/ubuntu-cpc/hooks/032-disk-image.binary 2017-06-14 16:26:38 +0000
115@@ -32,8 +32,6 @@
116 esac
117
118 create_empty_partition_table() {
119- apt-get install -qqy parted
120-
121 parted "$1" --script -- mklabel msdos
122 }
123
124
125=== modified file 'live-build/ubuntu-cpc/hooks/032-root-squashfs.binary'
126--- live-build/ubuntu-cpc/hooks/032-root-squashfs.binary 2017-04-11 21:30:48 +0000
127+++ live-build/ubuntu-cpc/hooks/032-root-squashfs.binary 2017-06-14 16:26:38 +0000
128@@ -43,8 +43,6 @@
129 umount "binary/boot/squashfs.dir/dev"
130 umount "binary/boot/squashfs.dir/tmp"
131
132-apt-get -qqy install squashfs-tools
133-
134 squashfs_f="${PWD}/livecd.ubuntu-cpc.squashfs"
135 squashfs_f_manifest="${squashfs_f}.manifest"
136
137
138=== modified file 'live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary'
139--- live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary 2017-04-12 02:10:56 +0000
140+++ live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary 2017-06-14 16:26:38 +0000
141@@ -14,8 +14,6 @@
142
143 . config/functions
144
145-apt-get -qqy install dosfstools gdisk
146-
147 create_partitions() {
148 disk_image="$1"
149 sgdisk "${disk_image}" --zap-all
150
151=== modified file 'live-build/ubuntu-cpc/hooks/034-disk-image-ppc64el.binary'
152--- live-build/ubuntu-cpc/hooks/034-disk-image-ppc64el.binary 2017-04-12 02:10:56 +0000
153+++ live-build/ubuntu-cpc/hooks/034-disk-image-ppc64el.binary 2017-06-14 16:26:38 +0000
154@@ -14,7 +14,6 @@
155
156 create_partitions() {
157 disk_image="$1"
158- apt-get install -qqy gdisk
159 sgdisk "${disk_image}" \
160 --zap-all
161 sgdisk "${disk_image}" \
162
163=== modified file 'live-build/ubuntu-cpc/hooks/040-qcow2-image.binary'
164--- live-build/ubuntu-cpc/hooks/040-qcow2-image.binary 2017-04-11 21:30:48 +0000
165+++ live-build/ubuntu-cpc/hooks/040-qcow2-image.binary 2017-06-14 16:26:38 +0000
166@@ -13,14 +13,11 @@
167 # Not sure if any other cloud images use subarch for something that
168 # should take qcow2 format, so only skipping this on raspi2 for now.
169 armhf:raspi2)
170- apt-get install -qqy pxz
171 pxz -T4 -c binary/boot/disk.ext4 > livecd.ubuntu-cpc.disk1.img.xz
172 exit 0
173 ;;
174 esac
175
176-apt-get install -qqy qemu-utils
177-
178 . config/functions
179
180 if [ -f binary/boot/disk-uefi.ext4 ]; then
181
182=== modified file 'live-build/ubuntu-cpc/hooks/042-vagrant.binary'
183--- live-build/ubuntu-cpc/hooks/042-vagrant.binary 2017-04-11 21:30:48 +0000
184+++ live-build/ubuntu-cpc/hooks/042-vagrant.binary 2017-06-14 16:26:38 +0000
185@@ -46,9 +46,6 @@
186
187 . config/functions
188
189-# Virtualbox is needed for making a small VMDK
190-apt-get -qqy install genisoimage qemu-utils
191-
192 # Lets be safe about this
193 box_d=$(mktemp -d)
194 seed_d=$(mktemp -d)
195
196=== modified file 'live-build/ubuntu-server/hooks/030-root-squashfs.binary'
197--- live-build/ubuntu-server/hooks/030-root-squashfs.binary 2017-04-11 21:16:35 +0000
198+++ live-build/ubuntu-server/hooks/030-root-squashfs.binary 2017-06-14 16:26:38 +0000
199@@ -25,8 +25,6 @@
200 mkdir binary/boot/squashfs.dir
201 cp -a chroot/* binary/boot/squashfs.dir
202
203-apt-get -qqy install squashfs-tools
204-
205 squashfs_f="${PWD}/livecd.${PROJECT}.squashfs"
206 squashfs_f_manifest="${squashfs_f}.manifest"
207
208
209=== modified file 'live-build/ubuntu-server/hooks/032-installer-squashfs.binary'
210--- live-build/ubuntu-server/hooks/032-installer-squashfs.binary 2017-04-11 21:16:35 +0000
211+++ live-build/ubuntu-server/hooks/032-installer-squashfs.binary 2017-06-14 16:26:38 +0000
212@@ -159,8 +159,6 @@
213 umount "binary/boot/squashfs.dir/dev"
214 umount "binary/boot/squashfs.dir/tmp"
215
216-apt-get -qqy install squashfs-tools
217-
218 squashfs_f="${PWD}/livecd.${PROJECT}.installer.squashfs"
219
220 (cd "$OVERLAY_ROOT/" &&

Subscribers

People subscribed via source and target branches