Steve Langasek
4ca92b04a7
Drop /etc/update-motd.d/51-cloudguest from cloud images; this is not consistent with current Ubuntu Advantage product language. Any future customizations to update-motd for cloud images should be done via a package instead.
2019-03-12 11:47:01 -07:00
Tobias Koch
cbd4eb5717
Use series files with dependency handling to generate hook symlinks dynamically
...
This patch currently only applies to the "ubuntu-cpc" project.
More and more logic has been going into the hook scripts to decide under which conditions they should run or not. As we are moving to parallelized builds of image sets, this will get even more complicated. Base hooks will have to know which image sets they belong to and modification of the dependency chain between scripts will become more complicated and prone to errors, as the number of image sets grows.
This patch introduces explicit ordering and dependency handling for scripts through the use of `series` files and an explicit syntax for dependency specification.
2018-12-10 09:18:02 +01:00
Steve Langasek
8f910aab4b
Merge lp:~vorlon/livecd-rootfs/initramfsless-everywhere
2018-11-02 14:39:42 -07:00
Steve Langasek
41382692ba
Merge lp:~codyshepherd/livecd-rootfs/uefi-manifests-cosmic
2018-10-29 10:48:42 -07:00
Cody Shepherd
a9935923f8
Changes to include grub efi packages and dependencies in uefi image manifests.
2018-10-29 09:28:50 -07:00
Steve Langasek
840015fbbe
Merge lp:~aleks.bogdanov/livecd-rootfs/remove-vagrant-console-log
2018-10-26 13:47:18 -06:00
Cody Shepherd
5bee1ade70
Ensure pre-seeded snaps are now published in the image manifests.
2018-10-22 10:21:50 -07:00
Aleksandr Bogdanov
aba10dc702
vagrant: disabling automatic console log file
2018-10-11 12:01:48 +02:00
Steve Langasek
b6dedb62ce
Unconditionally set GRUB_FORCE_PARTUUID in cloud images; as of version
...
2.02+dfsg1-5ubuntu5 grub will automatically fall back to booting with an
initrd if one is available, so we can now always attempt initramfsless
boot for cloud images which almost always works and causes only minimal
increase in boot speed for cases where it does not.
2018-10-03 17:21:56 -07:00
Dimitri John Ledkov
08c9c26e58
Ensure /lib/modules exists in root tarballs and sqashfs.
...
(LP: #1792905 )
2018-09-20 13:37:25 +02:00
Steve Langasek
3db2340c54
generate all tar files with --xattrs. LP: #1302192 .
2018-08-01 18:02:13 -07:00
Robert C Jennings
58b510cf99
ubuntu-cpc: Remove git-man for minimized images
2018-06-08 10:14:16 -07:00
Daniel Watkins
f9cae3ff7f
Restore removal of /boot/grub from rootfs artifacts
2018-06-07 16:24:59 -07:00
Daniel Watkins
ab85167fb5
Shell formatting cleanup
2018-06-07 16:24:29 -07:00
Daniel Watkins
605b97de97
ubuntu-cpc: Generate the root image contents once, and use it for both the
...
-root.tar.xz and the .squashfs.
2018-06-07 14:23:18 -07:00
Steve Langasek
91f26e016c
resync with trunk
2018-06-06 17:11:07 -07:00
Daniel Watkins
a9bb37c661
Use a relative path for config/functions
2018-06-06 16:04:45 -07:00
Steve Langasek
92497af14f
live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary: don't manually
...
install grub-efi-amd64 since that forces off grub-pc, which is otherwise
now coinstallable.
2018-06-06 15:41:30 -07:00
Daniel Watkins
136e2e2200
Drop /lib/modules creation as MAAS handles it downstream
2018-06-06 15:32:06 -07:00
Daniel Watkins
8e344b1f6b
Add comment explaining /lib/modules creation
2018-06-06 14:53:58 -07:00
Daniel Watkins
0e5b19259d
ubuntu-cpc: Reintroduce the -root.tar.xz artifact (LP: #1585233 ).
2018-06-06 11:24:10 -07:00
Daniel Watkins
87c11b5114
Don't fail to build CPC images if /lib/modules already exists in the
...
squashfs.
2018-04-24 12:01:44 -04:00
Daniel Watkins
12339422c5
ubuntu-cpc: When performing a minimized build, don't generate artifacts
...
that won't boot with the linux-kvm kernel (LP: #1757223 ).
2018-03-20 14:30:27 -04:00
Dimitri John Ledkov
815c3dfc10
Whitelist preserving "unowned" /var/log/journal. Maybe systemd package
...
should own the directory, and only adjust the permissions in
postinst. LP: #1754332
2018-03-16 18:38:22 +00:00
Dimitri John Ledkov
bc194dd48b
Build EFI armhf images.
2018-03-06 12:58:38 +00:00
Dimitri John Ledkov
d4fe705be7
Stop building vagrant.box, ova, vmdk images for i386.
...
https://trello.com/c/zhisDVTq
2018-02-05 15:37:52 +00:00
Steve Langasek
c02f0f0f4c
Install grub-ieee1275 instead of grub2 on ppc64el; grub2 is a dummy
...
transitional package in universe.
2017-12-06 14:22:41 -08:00
Michael Hudson-Doyle
c24e13f8f9
install grub-ieee1275 instead of grub2 on ppc64el
...
grub2 is a dummy transitional package that is in universe.
2017-12-01 13:44:32 +13:00
Balint Reczey
532bd5b5ed
Build minimized images in a 1GiB image
2017-11-23 20:27:16 +01:00
Balint Reczey
c45ea223b4
Use default xz compression (-6) for raspi2 image
...
Xz with -0 generated ~35% bigger compressed image.
LP: #1732681
2017-11-20 21:18:33 +01:00
Balint Reczey
578fa5a92d
Update changelog
2017-11-14 19:04:21 +01:00
Balint Reczey
4a168af954
Skip setting up initrd for s390x when it is not generated for the image
...
This fixes building minimized s390x images.
2017-11-14 18:44:06 +01: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
Steve Langasek
c0bb8d760f
remove vim a little harder
2017-10-13 23:52:03 -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
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
ad78957f01
Remove boot/grub leftovers from our root squashfs, left behind after
...
grub purge.
2017-10-13 14:20:50 -04:00
Balint Reczey
549232f607
Clean up dangling /boot/initrd.img symlink when needed
2017-10-11 01:57:03 +02:00
Steve Langasek
a75cbf210b
Fix the force-partuuid handling to create the file under
...
/etc/default/grub.d/ with a .cfg extension as grub expects; it's unclear
how this ever worked without.
2017-10-04 22:51:30 -07:00
Steve Langasek
a5e27120c0
Factor out grub-related diversions and use them consistently, so we
...
don't end up with wrong os-probe output in our grub.cfg.
2017-10-04 22:33:41 -07: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
c5d01a6635
Force partuuid in /etc/default/grub.d/* instead of in /etc/default/grub
...
This prevents ucf questions upon installation of changed /etc/default/grub
2017-09-27 18:54:09 -04:00
Steve Langasek
0365171ce3
minimization handling for UEFI disk images
2017-09-26 22:39:09 -04:00
Balint Reczey
9dd615d380
Drop initramfs-tools diversion
...
Kernels which are able to boot without initramfs now dropped dependency
on initramfs-tools thus initramfs-tools can be removed from the image
instead of having to divert it to avoid initramfs generation.
2017-09-26 22:39:09 -04:00