2516 Commits

Author SHA1 Message Date
Robert C Jennings
0d56c46d24
ubuntu-cpc: Only produce explicitly named artifacts (LP: #1837254)
In parallel builds where a list of image targets are provided the build
may produce binaries that are not part of the named set of targets but
are created by series dependencies.  These implicitly created binaries
may be generated by multiple builds but are unused as our convention for
the ubuntu-cpc project is to only consume binaries from the explicitly
named image targets; this avoid overwriting the same object by multiple
parallel builds.

This patch adds support for a 'provides' keyword for series files. It can
be specified multiple times per series file.  The field is used by the
make-hooks script to generate a list of output files created explicitly by
the named image targets.  The list is saved to the "explicit_provides"
file in the hooks output directory. In the case of the "all" target
this list would be empty.  This list is consumed by the "final.binary"
hook file.

This patch adds support for optional final.binary hooks in hooks.d/base
and/or hooks.d/extra.  These final.binary hooks are always included as
the last hook(s) if either exist with the hook in "extra" running last.

The base/final.binary hook includes logic to parse the "explicit_provides"
file generated by the make-hooks script and remove any binary output not
explicitly specified.

Some series files named unnecessary dependencies, specifically
disk-image, to keep output of implicit artifacts consistent between
parallel builds.  These unnecessary dependencies are removed in this
patch.
2019-08-28 20:22:07 -05:00
Tobias Koch
e00b7fa1dc Add retry logic to snap-tool to make downloads more resilient
LP: #1837871
2019-08-26 13:43:43 +02:00
Iain Lane
5a088d522f
Update changelog to fix c+p fail 2.578.6 2019-07-16 16:27:13 +01:00
Iain Lane
0d54091641
Finalise changelog 2019-07-16 13:20:54 +01:00
Iain Lane
e81e8e55b8
Update changelog 2019-07-16 13:20:48 +01:00
Iain Lane
b7e6aee81b
live-build/functions: Seed core again on non-minimized builds
This is apparently still required; without it snapd gives an error
message like:

  stateengine.go:102: state ensure error: devicemgr: cannot proceed without seeding "core"

(cherry picked from commit 7f07cc899192b33c0eded30ffa514a6581df046e)
2019-07-16 13:17:08 +01:00
Michael Vogt
2dbda09b6a
Run "snap debug validate-seed" to do basic validation of the generated seed.yaml
(cherry picked from commit b208ded59ea9e54ad42bd071a39cebe2e4809aa4)

Signed-off-by: Iain Lane <iain.lane@canonical.com>
2019-07-16 13:16:57 +01:00
Tobias Koch
a1302a4a91
Backport error-checking on determining snap bases
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1828500

Signed-off-by: Iain Lane <iain.lane@canonical.com>
(cherry picked from commit 51ef72e5b97820e7e6529903ee18270c87491609)
2019-07-16 13:14:27 +01:00
Steve Langasek
bddc32b01f releasing package livecd-rootfs version 2.578.5 2.578.5 2019-05-30 12:13:58 -07:00
Steve Langasek
e528a8eabd Strip translation files out of the minimal images.
This is another thing that goes unused when there is no human console user
(and we already don't have the locales themselves present on a minimal
image).

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1829333
2019-05-30 12:13:50 -07:00
Balint Reczey
ba8797dc16 Update changelog 2019-05-24 12:43:19 +02:00
Balint Reczey
4931523fc1 Merge lp:~rbalint/livecd-rootfs -b wsl-disco 2019-05-24 12:40:21 +02:00
Steve Langasek
50ca382be5 releasing package livecd-rootfs version 2.578.4 2.578.4 2019-05-23 13:33:45 -07:00
Robert C Jennings
367e9fbfeb
magic-proxy: Send headers on error (LP: #1829944) 2019-05-21 19:22:35 -05:00
Steve Langasek
24e39d6844 releasing package livecd-rootfs version 2.578.3 2.578.3 2019-05-21 15:19:37 -07:00
Robert C Jennings
2fecd44890
ubuntu-cpc: Allow comments in series files and add comments
The addition of disk-image to series files in a prior commit required
some explanation.  Without comment support in series files that was
not possible.  This patch adds support for comments and adds those
comments as well.
2019-05-20 22:14:05 -05:00
Robert C Jennings
00b995c7e2
ubuntu-cpc: Ensure base disk image is the same between all build targets
The following targets have livecd.ubuntu-cpc.manifest (and
livecd.ubuntu-cpc.ext4) which differ in some way from the 'all'
target. They are all missing grub-efi and other modifications:

root-dir
squashfs
tarball

These targets do not depend on the 'disk-image' target. This means that
the ext4 produced will lack the uefi modifications (and any from the
disk-image target binary hooks).

Since the ext4 file is common to all builds there is a chance that a
parallel build from one of these targets could overwrite this artifact.
This patch ensures that all targets will produce consistent base output.
2019-05-20 22:14:05 -05:00
Robert C Jennings
f493132f90
ubuntu-cpc: Fixup comment references to file names post-parallelization 2019-05-20 22:13:23 -05:00
Balint Reczey
edbbc23970 Build WSL rootfs tarball
LP: #1827930
2019-05-17 16:40:31 +02:00
Michael Hudson-Doyle
51bd9d5b4a releasing package livecd-rootfs version 2.578.2 2.578.2 2019-05-08 10:44:02 +12:00
Michael Hudson-Doyle
523a964b64 Remove device nodes later for ubuntu-base:minimized (i.e. docker) builds. (LP: #1828118) 2019-05-08 10:43:49 +12:00
Julian Andres Klode
a3dac25d86 releasing package livecd-rootfs version 2.578.1 2.578.1 2019-04-26 10:34:17 +02:00
Julian Andres Klode
e95ad81c47 Run clean_debian_chroot after minimize_manual
This avoids us having apt cache files in the final image.

For auto/build, we move the call to clean_debian_chroot to the end,
this also takes care of the caches generated by apt-get update
in case of a preinstalled-pool.

For layered, it's just a simple swap of the lines.

LP: #1826377
2019-04-25 11:51:30 +02:00
Steve Langasek
d5c0bd170b releasing package livecd-rootfs version 2.578 2.578 2019-04-13 02:13:22 -07:00
Steve Langasek
39f2558b96 Fix the sed script that Tobias had right in the first place and I mangled in the previous upload. 2019-04-13 02:13:17 -07:00
Steve Langasek
85b7813ff8 releasing package livecd-rootfs version 2.577 2.577 2019-04-12 13:38:45 -07:00
Steve Langasek
f4fa240ed7 Adjust sed command for clarity. 2019-04-12 13:37:02 -07:00
Tobias Koch
79e3123053 Make snapd-explicit-install-stamp a part of the image 2019-04-12 13:37:02 -07:00
Tobias Koch
796211dde7 If image has core18 snaps only, automatically preseed snapd 2019-04-12 13:37:02 -07:00
Tobias Koch
05e71b3840 Do not include any snaps in ubuntu-cpc:minimized builds 2019-04-12 13:37:02 -07:00
Balint Reczey
04e5864c51 Merge ~rbalint/livecd-rootfs:ubuntu/master 2019-04-12 17:33:45 +02:00
Balint Reczey
2d162dd121 Pass --sort=name to tar to make tarballs more reproducible and rsync-friendly 2019-04-10 14:38:35 +02:00
Łukasz 'sil2100' Zemczak
b952a0c243 releasing package livecd-rootfs version 2.576 2.576 2019-04-10 10:28:25 +02:00
Łukasz 'sil2100' Zemczak
e779a202c5 Merge branch 'feature/snap-tool-prefer-stable-for-core' of https://git.launchpad.net/~tobijk/livecd-rootfs/+git/livecd-rootfs into ubuntu/master 2019-04-09 18:31:27 +02:00
Mathieu Trudel-Lapierre
c6c7d5618a releasing package livecd-rootfs version 2.575 2.575 2019-04-01 14:30:02 -04:00
Robert C Jennings
a45342f269
ubuntu-cpc: avoid duplicate snaps listed in qcow manifest
commit a993592 introduced an additional call to create_manifest
(and snap-seed-parse) to write binary/boot/filesystem.packages. This
caused duplicate snap lines in the qcow manifest. This is because the
live-build/auto/binary code assumes that after 'lb binary' is run the
filesystem.packages will only have debs and it calls snap-seed-parse to
add them to the file. The commit changed filesystem.packages in the
ubuntu-cpc uefi binary hook to include debs and snaps.

This patch keeps the intent of the prior patch, updating the
filesystem.packages file for the content of the uefi disk image, but
only writes a listing of debian packages to match the expected content
of filesystem.packages.  The snaps will still be added in generic code
in live-build/auto/build.
2019-03-29 15:39:47 -05:00
Dimitri John Ledkov
2db7f01a58
releasing package livecd-rootfs version 2.574 2.574 2019-03-21 22:51:27 +00:00
Dimitri John Ledkov
036d7d2949
Make serial-subiquity@ use the same codepath as tty1 subiquity.
Such that subiquity runs in the correct environment.
Depends on: https://github.com/CanonicalLtd/subiquity/pull/428
2019-03-21 12:27:15 +00:00
Didier Roche
a44c468a6c releasing package livecd-rootfs version 2.573 2.573 2019-03-20 17:11:39 +01:00
Didier Roche
b20cf752e6 Add languages to live pass
The name of the pass is live and not "ubuntu-live" which is the live pass
default task.
2019-03-20 17:10:05 +01:00
Tobias Koch
79ed860c5e snap-tool info prints out the base 2019-03-20 17:00:58 +01:00
Tobias Koch
ee4fc93b06 snap-tool: prefer 'stable' channel over 'stable/ubuntu-X.X' for core snaps
When the "snap-tool" script encounters a core snap it will switch to
the "stable" channel if the channel was set to "stable/ubuntu-X.X". This
ensures that core snaps always come from one canonical source.
2019-03-20 14:58:01 +01:00
Dimitri John Ledkov
1f5c21fd12
releasing package livecd-rootfs version 2.572 2.572 2019-03-20 00:58:27 +00:00
Dimitri John Ledkov
1ab438750d
Revert "subiquity: fix name of mdoules.squashfs to mount"
This reverts commit 98e0b1031d931cbe87f3744613f05557e3bc9acf.
2019-03-20 00:57:41 +00:00
Dimitri John Ledkov
2adae2ef2c
releasing package livecd-rootfs version 2.571 2.571 2019-03-18 14:21:52 +00:00
Dimitri John Ledkov
98e0b1031d
subiquity: fix name of mdoules.squashfs to mount
ubuntu-cdimage/debian-cd/tools/add_live_filesystem helpfully adds a
'filesystem.' prefix to the squashfs, hence the name of the file
didn't match what's on disk.
2019-03-18 14:18:27 +00:00
Didier Roche
ad4f8f745c releasing package livecd-rootfs version 2.570 2.570 2019-03-18 09:59:22 +01:00
Didier Roche
73bf25a664 releasing package livecd-rootfs version 2.570 2019-03-18 09:58:58 +01:00
Didier Roche
995f3cf9e0 Ensure default langpacks are removed after installation
Add langpacks to live tasks to have them in the ubiquity diff file and
thus, purged after installation if not selected. (LP: #1818890)
2019-03-18 09:45:47 +01:00
Jean-Baptiste Lallement
38bb0b3301 Fix grub divert for multilayer images
grub-probe must not be called during image build so grub is diverted. In
multilayer image the chroot is always the tip of the filesystem, so we
divert grub at the beginning of each pass and undivdert it as the end.
For flat images, it's diverted just before building the chroot and
undiverted after.
2019-03-18 09:33:07 +01:00