364 Commits

Author SHA1 Message Date
Balint Reczey
3ae9628528 Build WSL rootfs tarball
LP: #1827930
2019-05-16 18:16:44 +02:00
Robert C Jennings
bca9242474
ubuntu-cpc: Allow comments in series files and add comments
The addition of disk-image to series files in a prior commit required
some explanation.  Without comment support in series files that was
not possible.  This patch adds support for comments and adds those
comments as well.
2019-05-02 17:15:33 -05:00
Robert C Jennings
05850394d7
ubuntu-cpc: Ensure base disk image is the same between all build targets
The following targets have livecd.ubuntu-cpc.manifest (and
livecd.ubuntu-cpc.ext4) which differ in some way from the 'all'
target. They are all missing grub-efi and other modifications:

root-dir
squashfs
tarball

These targets do not depend on the 'disk-image' target. This means that
the ext4 produced will lack the uefi modifications (and any from the
disk-image target binary hooks).

Since the ext4 file is common to all builds there is a chance that a
parallel build from one of these targets could overwrite this artifact.
This patch ensures that all targets will produce consistent base output.
2019-05-02 16:04:10 -05:00
Robert C Jennings
0bfc5c4290
ubuntu-cpc: Fixup comment references to file names post-parallelization 2019-05-02 15:50:21 -05:00
Balint Reczey
2d162dd121 Pass --sort=name to tar to make tarballs more reproducible and rsync-friendly 2019-04-10 14:38:35 +02:00
Robert C Jennings
a45342f269
ubuntu-cpc: avoid duplicate snaps listed in qcow manifest
commit a993592 introduced an additional call to create_manifest
(and snap-seed-parse) to write binary/boot/filesystem.packages. This
caused duplicate snap lines in the qcow manifest. This is because the
live-build/auto/binary code assumes that after 'lb binary' is run the
filesystem.packages will only have debs and it calls snap-seed-parse to
add them to the file. The commit changed filesystem.packages in the
ubuntu-cpc uefi binary hook to include debs and snaps.

This patch keeps the intent of the prior patch, updating the
filesystem.packages file for the content of the uefi disk image, but
only writes a listing of debian packages to match the expected content
of filesystem.packages.  The snaps will still be added in generic code
in live-build/auto/build.
2019-03-29 15:39:47 -05:00
Steve Langasek
e5e1c8dc96 Also don't create the update-motd directory since we're not writing to it.
It will almost certainly be created at some point but we don't need to
create it here.
2019-03-12 12:25:30 -07:00
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