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
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
Steve Langasek
95890f6713
We probably still want sudo, even in a minimal image.
2017-09-26 22:39:09 -04:00
Steve Langasek
e6bbe5f8a5
Export the subproject into config/chroot and config/binary, so that this
...
information is available to per-project hooks that need to be
subproject-aware (e.g., to skip steps when SUBPROJECT=minimize)
2017-09-26 22:39:09 -04:00
Steve Langasek
abbbeb8fda
Begin adding support for a project-independent 'minimize' subproject,
...
which (ironically) omits ubuntu-minimal in favor of using only the
minbase package set.
2017-09-26 22:39:08 -04:00
Gary.Wzl
8a8d203743
* Add a test for SUBPROJECT when PROJECT comes to ubuntu-server.
...
* Use notations "0/1" instead of "false/true" as a value for GENERATE_ROOTFS_ONLY.
2017-09-20 18:15:16 +08:00
Gary.Wzl
228ed7c87b
Remove 'IMAGETYPE' and 'IMAGEFORMAT' bits per the suggestions.
2017-09-18 09:38:20 +08:00
Gary.Wzl
eb76178ab5
Support to only generate rootfs via variable (GENERATE_ROOTFS_ONLY).
2017-08-28 15:14:54 +08:00
Gary.Wzl
84da578380
Add IMAGETYPE to support classic image creation by ubuntu-image.
2017-08-28 11:24:51 +08: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
Mathieu Trudel-Lapierre
726e6192e0
auto/config: enable Debug::pkgDepCache::AutoInstall so tracking down
...
dependency bugs in the livefs is a little clearer.
2017-06-23 14:23:53 -04:00
Steve Langasek
926b22a834
Merge lp:~rbalint/livecd-rootfs/deps
2017-06-15 23:46:40 -07:00
Steve Langasek
23d9db863e
Add cm3 as a known ubuntu-core image type. LP: #1698223 .
2017-06-15 23:36:42 -07: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