Commit Graph

30 Commits

Author SHA1 Message Date
Samuel Dolt 04e0adf97a feat(efibootguard): single image with automatic partition switch
Now a single unified kernel image is built using a new CoreOS
specific functionality added in the efibootguard UKI stub to
automatically insert root=PARTLABEL=rootfs0 (or rootfs1) in the
kernel command line

BREAKING CHANGE: coreos-image-uki.bbclass now only generate a
single kernel image named kernel-${MACHINE}.efi
2023-06-27 14:20:37 +02:00
Samuel Dolt 6bf03fbec2 feat(coreos-installer): add coreos-installer and emmc support
Now coreos-installer can be used with Beaglebone and cn9130-cf-pro
to install CoreOS into the emmc instead of booting only on the
SDCard
2023-06-21 15:32:08 +02:00
Samuel Dolt 1ecdf10a5b feat(wic): allow to configure the rootfs partition size
The rootfs partition size is now configurable with the
WKS_PART_ROOT_SIZE variable for beaglebone, cn913x and vm-x64
target
2023-05-31 13:46:04 +02:00
Samuel Dolt 2adfda1626 feat(wks): rename partition
Now we use fw0, fw1, efi, ebg0, ebg1, rootfs0 and rootfs1 partition
name.

BREAKING CHANGE: bootX partition are now named ebgX
BREAKING CHANGE: platformX partition are now named rootfsX
2023-05-24 11:12:12 +02:00
Samuel Dolt 518c651ef9 feat(coreos-image-swupdate.bbclass): add a way to dynamically extends the
sw-description files

The COREOS_SWUPDATE_EXTENDS_FOR and COREOS_IMAGE_SWUPDATE_EXTRACLASSES
variable can now be used to configure the coreos-image-swupdate to
dynamically extends some part of the sw-description by calling some
python function
2023-05-15 18:23:02 +02:00
Samuel Dolt fb4702780b feat(swupdate): add efibootguard update support
This also change the beaglebone target to use a GPT
partitioned disk

BREAKING CHANGE: .swu image generated can not be used on old
device, thus the device has to be reflashed.

BREAKING CHANGE: Support for MBR formatted disk is removed, as
it was only used for Beaglebone
2023-05-15 18:09:18 +02:00
Samuel Dolt 6e8620a51f fix(coreos-efi-secureboot.bbclass): fix cache invalidation
COREOS_EFI_SECUREBOOT_KEYDIR_HASH was intended to store a hash
of each file present in build/key in order to discard the sstate
cache on key changes. But this variables was wrongly always empty
due to a wrong check in a loop.
2023-05-05 09:02:20 +02:00
Samuel Dolt d1ffd51919 fix(vm-x64.conf): disable watchdog in efibootguard
Efibootguard shouldn't turn on the watchdog as we don't
support it yet from the Linux side
2023-03-15 15:11:06 +01:00
Samuel Dolt 367814e94c feat(coreos-emmc-flasher): beaglebone support
This introduce a new coreos-emmc-flasher-beaglebone
recipe that create a SWU file that can be used to
create the partition in the internal emmc of a beaglebone
and flash both u-boot and efibootguard.

Support for create efibootguard configuration partition
and flashing kernel and rootfs is not included.
2023-02-22 14:23:46 +01:00
Samuel Dolt e86b46771e Pull request #46: chore(efibootguard): better handling of efibootguard related variables
Merge in ICO/coreos from chore/efibootguard-handling to master

* commit 'e02d4b95f8e257d55f70b1dfbf6435ddd564b09e':
  chore(efibootguard): better handling of efibootguard related variables
2023-02-03 10:33:17 +01:00
Samuel Dolt e02d4b95f8 chore(efibootguard): better handling of efibootguard related variables
Default value related to efibootguard are not set inside the distro
and MACHINE that use coreos-image and doesn't define EFI as a
MACHINE_FEATURE doesn't get the efibootguard-tools package.
2023-02-02 11:47:06 +01:00
Samuel Dolt 342f288d04 chore(container): remove the container machine overrides
We can build container with non-container machine with
coreos-container-image classes so having a MACHINEOVERRIDES
for container machines only is misleading
2023-02-02 10:12:00 +01:00
Samuel Dolt 89d820d4a6 fix(container): fix build failure with container machines with coreos-image class 2023-02-02 10:11:06 +01:00
Samuel Dolt 49b20dbb31 Pull request #44: fix(wks): use --size instead of --fixed-size
Merge in ICO/coreos from fix/swupdate to master

* commit '2a128e872151b26b8729bf240f9b0931838c471c':
  fix(wks): use --size instead of --fixed-size
2023-02-01 11:27:56 +01:00
Samuel Dolt 2a128e8721 fix(wks): use --size instead of --fixed-size
--fixed-size produce a partition of the right size but doesn't expand
the filesystem. Instead we use --size --extra-space and
--overhead-factor to have a fixed size partition and fixed size
filesystem
2023-01-31 16:00:36 +01:00
Samuel Dolt 92d900ba2f fix(coreos-efi-secureboot): only install sb key if needed
Checking for COREOS_EFI_SECUREBOOT_INSTALL_PUBKEY_IN_EFIDIR
was not done properly resulting of the key always being
installed inside the EFI partition.
2023-01-31 13:26:06 +01:00
Samuel Dolt 6b773adee0 fix(beaglebone): fix kernel argument to select the right rootfs 2023-01-25 12:33:04 +01:00
Samuel Dolt 4e8716628f feat(efibootguard): replace systemd-boot by efibootguard
We are now using efibootguard to provide a A/B boot path for
the kernel and the rootfs.

This commit remove some change for systemd/systemd-boot that are
not needed anymore and rework how we set the command line, as we
will need to have the command line argument of the kernel both
inside do_image_wic and in a future do_image_swu
2023-01-24 15:28:00 +01:00
Samuel Dolt e1b6c73137 feat(container): add coreos-container-image and coreos-container-package class 2023-01-03 11:33:03 +01:00
Samuel Dolt f83fa6725f fix(u-boot-coreos-efi): add missing depends on u-boot-tools 2022-12-14 13:41:49 +01:00
Samuel Dolt 1fe4a473b6 fix(coreos-generic-machine/vm.inc): generate wic.xz 2022-12-02 11:23:49 +01:00
Samuel Dolt a633344e1e feat(container): add podman as container runtime 2022-11-29 11:41:36 +01:00
Samuel Dolt 2557c4030f meta-belden-bsp: add containers machine 2022-11-29 11:40:52 +01:00
Samuel Dolt 91d617cafb cn913x: enable UEFI boot 2022-11-24 15:37:07 +01:00
Samuel Dolt a3e168b217 meta-belden-coreos-bsp: add support for EFI and EFI Secure Boot 2022-11-09 15:35:15 +01:00
Samuel Dolt 8215d715df meta-belden-coreos-bsp: add the beaglebone machine 2022-10-31 08:55:14 +01:00
Samuel Dolt d564945da9 meta-belden-coreos-bsp: add beaglebone machine 2022-10-31 08:55:14 +01:00
Samuel Dolt 6c45058ef2 meta-belden-coreos-bsp: add layer 2022-10-31 08:55:09 +01:00
Samuel Dolt a7438b518d meta-belden-coreos-bsp: add the pc-x64 machine 2022-10-27 20:07:50 +02:00
Samuel Dolt 11e8648ac9 meta-belden-coreos-bsp: add layer 2022-10-27 20:05:11 +02:00