7 Commits

Author SHA1 Message Date
David Krauser
74209da539
Fix broken minimal cloud image boot on amd64 (LP: #1920043)
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.
2021-03-22 14:33:24 -05:00
CloudBuilder
fe88b51b63 Imported 2.664.18
No reason for CPC update specified.
2021-03-11 10:18:29 +00:00
CloudBuilder
4d28b63ed8 Imported 2.664.12
No reason for CPC update specified.
2021-01-25 12:18:42 +00:00
CloudBuilder
5beab54dee Imported 2.664.10
No reason for CPC update specified.
2021-01-08 15:18:41 +00:00
CloudBuilder
81ea1e273f Imported 2.664.8
No reason for CPC update specified.
2020-12-03 13:44:06 +00:00
Joshua Powers
faabb25178
amd64: always install grub-pc with shim-signed
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
2020-11-24 12:52:40 -06:00
CloudBuilder
e73bc19b59 Imported 2.549
No reason for CPC update specified.
2018-12-13 00:26:07 +00:00