945 Commits

Author SHA1 Message Date
Robert C Jennings
d41cc70bf5 ubuntu-cpc: Initramfs compression should match runtime default (LP: #1744114)
Cloud images created from the 'ubuntu-cpc' project use lzma initramfs
compression for the initial initramfs shipped in the image; this is the
default for livecd-rootfs. When a user updates the initramfs (or installs
a new kernel) on a running instance created from a cloud image they will
get gzip compression, which is the default shipped in initramfs-tools.

With this patch the compression method used to create the initramfs in
the initial cloud images will match the compression menthod used when
the end-user creates/updates an initramfs, namely gzip compression.
2018-01-19 12:26:32 -06:00
Steve Langasek
e6a66dd3bf Add support for passing snap channel to ubuntu-core image builds. 2018-01-12 14:56:57 -08:00
Balint Reczey
df89bff043 Drop Nexus 7 support 2018-01-06 01:26:42 +01:00
Balint Reczey
34dd1fb2f4 Revert to building minimized and not minimimized images with the same ~2.2 GiB size 2018-01-04 14:37:02 +01:00
Iain Lane
07873ec528 Support seeding of snaps
We run germinate during configure, and read from each resulting <seed>.snaps
file (expanded from STRUCTURE) to find out which snaps to seed. This is written
to config/seeded-snaps, which is read during build to download each one.
2018-01-04 12:11:46 +00:00
Michael Hudson-Doyle
0113b9aad7 self-review 2017-12-13 16:13:14 +13:00
Michael Hudson-Doyle
26753602fe Move casper from filesystem.squashfs to installer.squashfs. 2017-12-12 23:29:59 +13:00
Dimitri John Ledkov
5f64c373f1 Drop android-tools-fsutils dependency, and instead install it on
demand for the nexus7 sub-arch. This target is no longer produced,
thus by doing this android-tools can fall out of main to universe.
2017-12-11 12:22:31 +00:00
Balint Reczey
532bd5b5ed Build minimized images in a 1GiB image 2017-11-23 20:27:16 +01:00
Balint Reczey
89e87b4c2c Set LB_ISO_PREPARER to livecd-rootfs to avoid unbound variable in default string 2017-11-23 20:27:16 +01:00
Steve Langasek
49e17b717e Fix lingering reference to livecd-rootfs.ubuntu-core.model-assertion
that breaks the ubuntu-core image build.
2017-11-13 09:15:11 -08:00
Steve Langasek
f384f10867 Merge lp:~vorlon/livecd-rootfs/minimize-round-two 2017-11-09 23:49:30 -08:00
Steve Langasek
ea2840ddfc fix wrong use of PREFIX literal 2017-11-09 16:13:25 -08:00
Steve Langasek
7c07f8a65b Change ubuntu-core image builds to use the standard "$PREFIX" naming for
artifacts instead of being gratuitously different; requires a matching
change to ubuntu-cdimage.
2017-11-09 16:13:08 -08:00
Steve Langasek
02246dbf84 move configuration bits into live-build/auto/config from live-build/auto/build, per Adam 2017-11-09 15:55:45 -08:00
Steve Langasek
696ae6e1eb Name the manifest the way ubuntu-cdimage expects it for subarchs 2017-11-08 12:35:38 -08:00
Steve Langasek
e96fa8b878 ubuntu-image now produces a manifest file listing the snap revisions
used; publish this so that it's picked up by launchpad-buildd.
2017-11-08 12:22:05 -08:00
Steve Langasek
b3cf7b9013 The target for x86 ubuntu-core images is VMs, so create them with
a buffer of free space in order to work if booted in place.
2017-11-08 12:11:40 -08:00
Gary.Wzl
78da9b579b Per the suggestions, we exclude all binary hooks when IMAGEFORMAT is none. 2017-11-06 20:25:57 +08:00
Steve Langasek
083d58397c Make sure to remove any initramfs that was generated in a minimized
image.
2017-10-21 18:51:20 -07:00
Steve Langasek
f91a9f16ee Also remove old dpkg files from the live images 2017-10-18 22:20:44 -07:00
Gary.Wzl
c260534758 Add the IMAGEFORMAT=none to support generating a single rootfs. 2017-10-16 10:43:22 +08:00
Steve Langasek
df94729c60 sync with purge-initramfstools branch 2017-10-13 23:34:58 -04:00
Steve Langasek
e99636027f busybox-initramfs and busybox-static have reverse-recommends, so it's not enough to use apt-mark auto; remove these packages by name. 2017-10-13 23:27:07 -04:00
Steve Langasek
d24ca0490b Pass --cache false to lb config; otherwise we copy around caches of
.debs that are never used properly, and which prevent us from emptying
/var/cache/apt in images.
2017-10-13 22:15:38 -04:00
Steve Langasek
3a092539ca purging initramfs-tools as a prereq 2017-10-13 17:17:24 -04:00
Steve Langasek
018525ba12 resync with trunk 2017-10-13 17:15:48 -04:00
Steve Langasek
56a85e74c9 Also mark busybox-{initramfs,static} as automatically installed, so they can be removed again 2017-10-13 17:11:24 -04:00
Steve Langasek
08a5fc58ba Remove apt, debconf cruft files from /var/cache in all our livefses. 2017-10-13 14:28:17 -04:00
Balint Reczey
314655a2ae Skip installing server task when building minimial images 2017-10-11 01:57:03 +02:00
Balint Reczey
d6bb42bc63 Use kvm kernel only on amd64 2017-10-11 01:57:03 +02:00
Steve Langasek
7798e70d8f Purge initramfs-tools from minimized images. 2017-10-10 10:52:06 -04:00
Steve Langasek
58be5d5712 Merge lp:~vorlon/livecd-rootfs/snap-in-mate/ 2017-10-08 21:49:04 -04:00
Steve Langasek
e509a81f1d Unminimization information should only go to motd when we are actually
minimized.
2017-10-08 16:08:07 -04:00
Steve Langasek
1bcb0009ac mkdir before use 2017-10-07 21:35:16 +00:00
Steve Langasek
aec4452acf Fix quoting 2017-10-07 21:15:32 +00:00
Steve Langasek
c61850e168 Use regular chroot, not the Chroot wrapper, so we can actually debug our failing command 2017-10-07 20:51:54 +00:00
Steve Langasek
e59db65edb Add initial support for preinstallation of snaps in images, and
preinstall pulsemixer in the Ubuntu MATE image.
2017-10-07 05:17:27 +00:00
Steve Langasek
f296ec41c7 Merge lp:~vorlon/livecd-rootfs/generic-model-assertion-handling 2017-10-04 22:57:54 -07:00
Steve Langasek
4204faa484 If we're not on xenial and don't have extra ppas, don't try to use the kvm flavor for minimal images since it's not currently available. 2017-10-04 10:13:13 -07:00
Steve Langasek
203eb6251f mkdir our assertions dir 2017-10-03 21:45:50 -07:00
Steve Langasek
ff575bd93d add ubuntu-mate to the set of projects we add snap model assertions to. 2017-10-03 15:52:06 -07:00
Steve Langasek
12b07ae5af move snap assertion handling into the generic build script (and, in
the process, from the subiquity overlay to the base squashfs).
2017-10-03 15:50:06 -07:00
Steve Langasek
fffec4782f skip installation of kernel headers for all minimal images 2017-10-02 15:17:23 -07:00
Steve Langasek
a85cf55f29 Use kvm kernel flavor for minimized cloud image, not virtual 2017-10-02 14:47:46 -07:00
Steve Langasek
4561f17d35 Merge lp:~rbalint/livecd-rootfs/minimized 2017-09-29 16:41:58 -04:00
Balint Reczey
f0cb85a506 When SUBPROJECT environment variable is not set assume it to be "" 2017-09-29 15:20:14 -04:00
Balint Reczey
2ef2aee456 Use SUBPROJECT=minimized name instead of SUBPROJECT=minimize for consistency 2017-09-29 15:20:14 -04:00
Balint Reczey
d496915741 Warn users that unminimize may fail reinstalling packages 2017-09-29 15:20:11 -04:00
Balint Reczey
69c1eb6d26 Mention unminimize script in motd 2017-09-29 15:16:25 -04:00