1638 Commits

Author SHA1 Message Date
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
1976255e5c divert /usr/bin/systemd-detect-virt as part of the grub diversions, so
that the grub kernel postinst hook is operational when we're building
in a container.  LP: #1729034.
2017-10-31 09:58:22 -07: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
dfaf247193 Properly handle loop device names when there are > 10 devices on the
system.
2017-10-21 00:54:02 -07:00
Steve Langasek
2b30a986c3 Merge lp:~vorlon/livecd-rootfs/minimize-purge-initramfstools 2017-10-18 23:20:19 -07:00
Steve Langasek
f91a9f16ee Also remove old dpkg files from the live images 2017-10-18 22:20:44 -07:00
Steve Langasek
51890b5b43 add 'file' to the axe list for minimized 2017-10-18 18:11:53 -07:00
Steve Langasek
c9b427c11b Another round of package removals for minimization 2017-10-18 17:50:56 -07:00
Michael Hudson-Doyle
1a99680334 Remove snap.subiquity.started from subiquity's After=/Requires= as it
does not fix the race condition they were intended to address and causes
subiquity to be killed when snapd refreshes subiquity (LP: #1724411)
2017-10-18 13:26:08 +13:00
Michael Hudson-Doyle
895e2a51f1 Seed the subiquity snap to track the stable channel (LP: #1724410) 2017-10-18 13:23:45 +13:00
Gary.Wzl
8c12c46d08 Resolve the conflict. 2017-10-16 11:17:22 +08:00
Gary.Wzl
c260534758 Add the IMAGEFORMAT=none to support generating a single rootfs. 2017-10-16 10:43:22 +08:00
Steve Langasek
e53ad3b354 Fix server live image to pull subiquity from the stable channel, not
from edge.
2017-10-15 13:44:54 -07:00
Steve Langasek
c0bb8d760f remove vim a little harder 2017-10-13 23:52:03 -04: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
783437f533 instead, call apt clean from the chroot 2017-10-13 21:50:26 -04:00
Steve Langasek
dec765f035 no actual point in apt clean here, since that just cleans files from the bind mount 2017-10-13 21:40:02 -04:00
Steve Langasek
bc361bc33b call apt clean separately for the squashfs 2017-10-13 17:35:33 -04:00
Steve Langasek
dc875735b8 More packages to remove when minimizing 2017-10-13 17:25:50 -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
add1cca991 Refactor, mark all lib'*' and python'*' packages auto-installed so they can be cleaned up as dependencies instead 2017-10-13 17:00:37 -04:00
Steve Langasek
54427d4440 When building minimized cloud images, remove various packages that we
don't want installed by default.  Some are tools that aren't needed for
non-interactive use; some are libraries whose reverse-dependencies
will have already been removed; and one, open-vm-tools, should only be
included in images that are targeted to VMWare (which is not the case
for any of the current minimal images), rather than being included
directly in the cloud-image seed.
2017-10-13 14:59:37 -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
ad78957f01 Remove boot/grub leftovers from our root squashfs, left behind after
grub purge.
2017-10-13 14:20:50 -04:00
Steve Langasek
bea8a0696e snap.subiquity.started.service must be RemainAfterExit=yes to satisfy
the service dependencies.
2017-10-12 09:23:44 -04:00
Steve Langasek
f58957acd6 Add the SNAP_REEXEC=0 enviroment to the subiquity service as well. 2017-10-12 00:32:44 -04:00
Steve Langasek
9f040f0481 Fix wrong variable name in systemd unit snippets. 2017-10-11 18:24:19 -04:00
Steve Langasek
857f1984c9 export SNAP_REEXEC=0 to our snappy systemd units in the livefs overlay,
to work around apparmor not working reliably against aufs.
2017-10-11 12:46:10 -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
Balint Reczey
549232f607 Clean up dangling /boot/initrd.img symlink when needed 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
8094bfb4ee Merge lp:~mwhudson/livecd-rootfs/subiquity-ordering 2017-10-10 10:38:08 -04:00
Dimitri John Ledkov
4b9e6e811f Now that grub-related diversions have been factored out in 2.466
instead of having bogus root=stuff arg generated in grub.cfg, it is
actually empty. Therefore update the sed command to make the arg in
the root= token optional. This should resolve non-booting livecd cpc
images.
2017-10-10 13:23:30 +01:00
Michael Hudson-Doyle
c9128a31e3 add snap.subiquity.started.service to subiquity.service's Requires= 2017-10-09 15:07:56 +13: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