49 Commits

Author SHA1 Message Date
CloudBuilder
286484e57b Imported 23.10.52 from mantic-release pocket.
No reason for CPC update specified.
2023-10-03 14:51:09 +00:00
CloudBuilder
125ac748b0 Imported 23.10.47 from mantic-release pocket.
No reason for CPC update specified.
2023-09-27 13:51:09 +00:00
CloudBuilder
007da3a58d Imported 23.10.42 from mantic-release pocket.
No reason for CPC update specified.
2023-09-19 21:51:09 +00:00
CloudBuilder
a497fcf67e Imported 23.10.7
No reason for CPC update specified.
2023-07-31 22:51:08 +00:00
CloudBuilder
63e502da78 Imported 2.899
No reason for CPC update specified.
2023-07-11 00:51:08 +00:00
CloudBuilder
740d9307aa Imported 2.896
No reason for CPC update specified.
2023-07-07 13:59:39 +00:00
CloudBuilder
1287214409 Imported 2.890
No reason for CPC update specified.
2023-06-19 08:16:56 +00:00
Simon Poirier
98375ecc7f fix: revert upstream losetup change
Roll back some upstream changes replacing kpartx by losetup while
unstable.

reverts ada1f09b39332ec828369e0a30f2870df5c4dc3e
reverts ef146db89529fc7fbc48052e0b684f7cb95f34ee
2023-05-17 11:40:04 -04:00
CloudBuilder
9c2f1531ab Imported 2.832
The tag was already there due to package removal before the release
2023-05-05 12:02:39 +00:00
CloudBuilder
a31b54068a Imported 2.828
pkg got reverted due to kpartx/losetup problems
2023-04-19 09:12:07 +00:00
CloudBuilder
dc9b11af67 Imported 2.832
No reason for CPC update specified.
2023-04-18 05:48:08 +00:00
CloudBuilder
155ec305b3 Imported 2.822
No reason for CPC update specified.
2023-04-10 19:48:12 +00:00
CloudBuilder
dcb48eae8d Imported 2.821
No reason for CPC update specified.
2023-04-08 02:48:12 +00:00
CloudBuilder
d3fa5efeea Imported 2.819
No reason for CPC update specified.
2023-04-05 22:48:28 +00:00
CloudBuilder
66b89072d5 Imported 2.806
No reason for CPC update specified.
2023-03-01 21:48:09 +00:00
CloudBuilder
990a277498 Imported 2.804
No reason for CPC update specified.
2023-02-27 06:48:10 +00:00
CloudBuilder
c6d4c73dfe Imported 2.796
No reason for CPC update specified.
2023-01-11 04:48:18 +00:00
CloudBuilder
5193bfb60f Imported 2.793
No reason for CPC update specified.
2022-11-21 23:48:18 +00:00
CloudBuilder
8545f7a201 Imported 2.791
No reason for CPC update specified.
2022-10-17 23:38:15 +00:00
CloudBuilder
397cee1694 Imported 2.790
No reason for CPC update specified.
2022-10-14 13:38:26 +00:00
CloudBuilder
81eff29515 Imported 2.784
No reason for CPC update specified.
2022-09-25 12:38:19 +00:00
CloudBuilder
056159a3eb Imported 2.779
No reason for CPC update specified.
2022-09-16 11:38:30 +00:00
CloudBuilder
30e2959c90 Imported 2.777
No reason for CPC update specified.
2022-09-13 23:38:16 +00:00
CloudBuilder
01d6be2f85 Imported 2.773
No reason for CPC update specified.
2022-07-31 13:38:14 +00:00
CloudBuilder
3723595eb9 Imported 2.770
No reason for CPC update specified.
2022-07-28 03:38:21 +00:00
CloudBuilder
9ea0f1567e Imported 2.769
No reason for CPC update specified.
2022-07-21 17:38:13 +00:00
CloudBuilder
3f1e663543 Imported 2.751
No reason for CPC update specified.
2022-01-14 19:59:15 +00:00
CloudBuilder
24daa1af63 Imported 2.747
No change rebuild
2021-12-14 15:25:44 +00:00
Dimitri John Ledkov
d5a8116428
Add support for generic preinstalled images. LP: #1923832 2021-04-26 11:04:37 +01:00
Dimitri John Ledkov
4428dbbf8f
riscv64: generalise slightly how preinstalled server images are built, to allow using subarch to pick u-boot binaries to install. 2021-03-11 17:08:15 +00:00
Gauthier Jolly
76330897dc ubuntu-cpc: make /etc/fstab consistent with other ubuntu images
Modify the mount options in fstab to make the Cloud images consistent
with the default we have elsewhere.

LP: #1902103
LP: #1881006
2021-03-02 14:21:36 +00:00
Dimitri John Ledkov
53b28d5f58
esp: perform fsck.
LP: #1912835
2021-01-22 19:16:47 +00:00
Dimitri John Ledkov
7c760864fd
esp: install grub in ubuntu bootloader id path, instead of removable.
Do not use removable uefi bootloader path in the cloud-images by
default, as that prevents upgrades of the bootloader.

LP: #1912830
2021-01-22 19:09:25 +00:00
Dimitri John Ledkov
6746d9fbd9
disk-image-uefi: fix riscv64 subarch user-data. 2020-12-08 09:15:09 +00:00
Dimitri John Ledkov
3e1e76b94a
riscv64: fixup subarch build, unbound variable 2020-12-03 16:17:32 +00:00
Dimitri John Ledkov
a808b28d47
riscv64: build preinstalled riscv64 image with uboot SPL and CIDATA. 2020-12-01 17:14:40 +00:00
Dimitri John Ledkov
3962f4ac23
disk-image-uefi: riscv64 add ubuntu:ubuntu login, without expiry. 2020-11-24 18:40:40 +00:00
Dimitri John Ledkov
da578b2c6b
disk-image-uefi: riscv64 add u-boot spl
LP: #1905274
2020-11-24 18:40:34 +00:00
Dimitri John Ledkov
914997827d
disk-image-uefi.binary: build riscv64 image without a bootloader.
We want GPT image with ESP, however there is no bootloader for it
yet. Build without it.
2020-11-19 15:47:12 +00:00
Dimitri John Ledkov
122364df65
disk-image-uefi.binary: enable secureboot on the arm64 image. 2020-11-19 15:47:09 +00:00
Dimitri John Ledkov
e2fd168f50
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.

LP: #1901906
2020-10-28 22:56:31 +00:00
Joshua Powers
b0c8b628b2
ubuntu-cpc: only install shim-signed, run autoremove
The CPC build hooks for amd64 incorrectly attempt to install shim-signed
in addition to grub-efi-amd64 and grub-pc. These latter two packages
conflict with each other. Instead shim-signed should install whatever
packages are required.

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.
2020-10-26 11:48:24 -07:00
David Krauser
83499f1a95 Add mechanism to detect initrdless boot fallback
In v2.672 the default boot behavior of cloud images changed:

- Prior to v2.672, cloud images with the linux-generic kernel attempt
  to boot without an initramfs, would fail, and then retry with an
  initramfs.

- After v2.672, cloud images with the linux-generic kernel boot with
  an initramfs on the first try.

While the behavior is different between the two, they both result in
an instance that has booted with an initramfs. To ensure the changes
in v2.672 do not regress, we need an automated way to check if we are
attempting to boot without an initramfs and failing.

With this change, when we attempt to boot with an initramfs and fail,
initrdless_boot_fallback_triggered is set to non-zero in the grubenv.
This value can be checked after boot by looking in /boot/grub/grubenv
or by using the grub-editenv list command.
2020-07-22 16:41:10 -04:00
David Krauser
4c504f6781 Fix broken minimal cloud image boot on amd64
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.
2020-07-16 17:25:46 -04:00
David Krauser
1ca1330eae Boot with an initramfs by default in cloud images
Generic cloud images with the linux-generic kernel are not able to
boot without an initramfs. Previously, these images attempted to boot
without an initramfs, would fail, and then retry with an initramfs.
This slows the boot and is confusing behavior.
2020-07-08 17:13:49 -04:00
David Krauser
0e3b1e206b
Add support for HyperV Gallery images 2019-06-11 23:26:07 -04:00
Robert C Jennings
0bfc5c4290
ubuntu-cpc: Fixup comment references to file names post-parallelization 2019-05-02 15:50:21 -05: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
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