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
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
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
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
3a092539ca
purging initramfs-tools as a prereq
2017-10-13 17:17:24 -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
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
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
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
Balint Reczey
2858d7fb62
Print the documentation files which could not be restored by unminimize
2017-09-26 22:39:09 -04:00
Balint Reczey
e28933a1d5
Explain why unminimization script is a bit complicated
2017-09-26 22:39:09 -04:00
Balint Reczey
583d813b9b
Verify only documentation that should have been restored after unminimization
2017-09-26 22:39:09 -04:00
Balint Reczey
3532fa0b18
Use "dpkg --verify-format rpm" explicitly to be safe when the default changes
2017-09-26 22:39:09 -04:00
Balint Reczey
11da0c59a5
Fix typo
2017-09-26 22:39:09 -04:00
Balint Reczey
d5483eb728
Install ubuntu-minimal while unminimizing the system
2017-09-26 22:39:09 -04:00
Balint Reczey
6672dde922
Add unminimize script for reverting minimization on running system
2017-09-26 22:39:09 -04:00
Balint Reczey
bb7e620701
Drop man pages and most of the documentation from minimized images
...
/usr/share/doc/*/copyright and changelog.Debian.gz files are still kept
2017-09-26 22:39:09 -04:00
Steve Langasek
83f165ec91
if we're using SUBPROJECT=minimize, and tzdata is not installed, remove
...
files that have been left behind. This is a workaround for a bug that should
be fixed in tzdata.
2017-09-26 22:39:09 -04:00
Balint Reczey
cfda7d20bd
Use xz -T4 -0 instead of pxz
...
Test showed very little difference in file-size between -0 and -9 while
both compression and decompression need much less memory and compression
needs less CPU time for -0.
Supported xz versions before 5.2 also accept the -T4 option but ignore it.
Also depend on xz-utils instead of on pxz.
LP: #1701132
2017-06-30 12:22:29 +02:00
Balint Reczey
6c9cf10d72
Depend on pxz and vmdk-stream-converter instead of installing them at runtime
2017-06-14 18:25:15 +02:00
Steve Langasek
dbba32fae6
For now, make sure all automated image builds are on the edge channel.
...
Eventually we will want to pass the channel as build metadata instead.
2017-04-28 18:02:16 -07:00
Steve Langasek
4f2c623e27
Use xz to compress ubuntu-image .img files before transfer, so that we
...
have smaller downloads and retain file sparseness everywhere.
2017-04-28 17:50:02 -07:00
Balint Reczey
0109d5304e
Optionally use ubuntu-image for building snap based images
2017-04-28 22:30:18 +02:00
Balint Reczey
44f9dceeb4
Require PROJECT environment to be set for lb build
2017-04-28 22:27:50 +02:00
Martin Pitt
e40e563cb8
live-build/auto/build: Fix typo in netplan policy snippet.
...
*brown paperbag* (LP: #1615180 )
2016-08-20 06:56:33 +02:00
Martin Pitt
3c3737327f
live-build/auto/build: Move NetworkManager configuration to the right
...
place.
2016-08-19 16:28:21 +02:00
Martin Pitt
d9ce44d73a
live-build/auto/build: If the image pre-installs network-manager, let it
...
manage all devices by default by shipping a default netplan policy.
Installing NM on an existing system only manages wifi and wwan, to avoid
interfering with networkd managed devices on existing server/cloud
instances.
2016-08-18 08:39:32 +02:00
Oliver Grawert
418501bc65
slightly adjust the version handling for the core snap, drop suffix from kernel snap version string
2016-07-21 10:09:39 +02:00
Oliver Grawert
f6058dfdb4
sanitize the version number of the ubuntu-core snap
2016-07-19 14:00:49 +02:00