I recently pulled initramfs logic out of the base build hook, and
dropped that into the `replace_kernel` function. Any cloud image that
does not leverage the generic virtual kernel was expected to call
`replace_kernel` to pull in a custom kernel. That function will
disable initramfs boot for images that use a custom kernel.
Minimal cloud images on amd64 use the linux-kvm kernel, but the build
hook does not utilize the `replace_kernel` function. Instead, the
kernel flavor is set in `auto/config`. I pulled that logic out of
`auto/config` and am now calling `replace_kernel` in the build hook.
I also moved a call to generate the package list so that it will pick
up the change to the linux-kvm kernel.
shim-signed depends on grub-efi-amd64-signed, which in turn has
alternative depends on either `grub-efi-amd64 | grub-pc`. However to
support booting with either via shim&signed-grub and BIOS, the choice
must be made to install grub-pc, not grub-efi-amd64.
This makes images consistent with Ubuntu Deskop, Live Server, buildd
bootable images; all of which already do install grub-pc and
shim-signed.
Additionally, this will ensure that autoremove is run after installing
anything in the CPC build hooks. This is done to avoid shipping images
that include packages that are autoremovable. This will clean-up as
packages are installed and detect any breakage at build time.
LP: #1901906
Imported using git-ubuntu import.
Changelog parent: 0564e36edc
New changelog entries:
[ Michael Hudson-Doyle ]
* Disable journald rate limiting in the live-server live session.
(LP: #1776891)
[ Steve Langasek ]
* generate all tar files with --xattrs. LP: #1302192.
Imported using git-ubuntu import.
Changelog parent: 3f03257a8c
New changelog entries:
[ Robert C Jennings ]
* ubuntu-cpc: Remove git-man for minimized images
* Disable checksum generation
[ Colin Watson ]
* live-build/auto/config: Drop "lp-*" hostname filter for Launchpad
builders, since LP #1747015 is now fixed; "*.buildd" should be enough.
[ Francis Ginther ]
* Update unminimize script text and install ubuntu-standard when
unminimizing a minimal image (LP: #1778777)
Imported using git-ubuntu import.
Changelog parent: 8b47481862
New changelog entries:
* ubuntu-cpc: Generate the root image contents once, and use it for both the
-root.tar.xz and the .squashfs.
Imported using git-ubuntu import.
Changelog parent: d9fe4558cf
New changelog entries:
[ Daniel Watkins ]
* ubuntu-cpc: Use linux-kvm for all amd64 minimized builds (LP: #1775472).
[ Steve Langasek ]
* 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.
Imported using git-ubuntu import.
Changelog parent: 547df52eeb
New changelog entries:
* Don't fail to build CPC images if /lib/modules already exists in the
squashfs.
Imported using git-ubuntu import.
Changelog parent: f276860114
New changelog entries:
* ubuntu-cpc: When performing a minimized build, don't generate artifacts
that won't boot with the linux-kvm kernel (LP: #1757223).
Imported using git-ubuntu import.
Changelog parent: dcf2b800f6
New changelog entries:
* Whitelist preserving "unowned" /var/log/journal. Maybe systemd package
should own the directory, and only adjust the permissions in
postinst. LP: #1754332
Imported using git-ubuntu import.
Changelog parent: 54408aa506
New changelog entries:
[ Steve Langasek ]
* Properly handle loop device names when there are > 10 devices on the
system.
[ Dimitri John Ledkov ]
* Build EFI armhf images.
Imported using git-ubuntu import.
Changelog parent: faa28a6472
New changelog entries:
[ Michael Hudson-Doyle ]
* Install grub-ieee1275 instead of grub2 on ppc64el; grub2 is a dummy
transitional package in universe.
Imported using git-ubuntu import.
Changelog parent: 1db37274ff
New changelog entries:
[ Michael Hudson-Doyle ]
* Automount a partition of fixed UUID for giving subiquity canned answers.
[ Balint Reczey ]
* Use default xz compression (-6) for raspi2 image.
Xz with -0 generated ~35% bigger compressed image. (LP: #1732681)
* Zero fill space in UEFI partitions, too
* Set LB_ISO_PREPARER to livecd-rootfs to avoid unbound variable in
default string
* Build minimized images in a 1GiB image
Imported using git-ubuntu import.
Changelog parent: 0714b6b801
New changelog entries:
[ Balint Reczey ]
* Skip setting up initrd for s390x when it is not generated for the image.
This fixes building minimized s390x images.
Imported using git-ubuntu import.
Changelog parent: c4cfbef1ee
New changelog entries:
* Remove boot/grub leftovers from our root squashfs, left behind after
grub purge.
* Remove apt, debconf, dpkg cruft files from /var/cache and /var/lib in all
our livefses.
* 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.
* 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.
Imported using git-ubuntu import.
Changelog parent: 5a3ccfef34
New changelog entries:
[ Balint Reczey ]
* Clean up dangling /boot/initrd.img symlink when needed
* Revert ignoring failure of minimized autopkgtest on ppc64el
* Use kvm kernel only on amd64
* Skip installing server task when building minimial images
[ Steve Langasek ]
* export SNAP_REEXEC=0 to our snappy systemd units in the livefs overlay,
to work around apparmor not working reliably against aufs.
Imported using git-ubuntu import.
Changelog parent: 8168b7c92a
New changelog entries:
* ubuntu-server: drop hard-coded test key from the subiquity overlay in
favor of the generic-classic assertion from the store.
* move snap assertion handling into the generic build script (and, in
the process, from the subiquity overlay to the base squashfs).
* add ubuntu-mate to the set of projects we add snap model assertions to.
* Factor out grub-related diversions and use them consistently, so we
don't end up with wrong os-probe output in our grub.cfg.
* 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.
Imported using git-ubuntu import.
Changelog parent: 2da89c90de
New changelog entries:
[ Balint Reczey ]
* Bump needed live-build version which can build images without initrd
* Mention unminimize script in motd
* Warn users that unminimize may fail reinstalling packages
* Use SUBPROJECT=minimized name instead of SUBPROJECT=minimize for
consistency
* Run autopkgtest for SUBPROJECT=minimized
* When SUBPROJECT environment variable is not set assume it to be ""
[ Michael Hudson-Doyle ]
* Fix path to subiquity-loadkeys