Commit Graph

43 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 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 b22684d2cd fix(coreos-image-uki.bbclass): fix default value of COREOS_KERNEL1_CMDLINE 2023-04-24 15:19:02 +02:00
Samuel Dolt 5bddcaad7a feat(coreos-container-image.bbclass): use coreos specific package-group for IMAGE_INSTALL 2023-03-13 11:12:15 +01:00
Samuel Dolt 958f5d244b feat(coreos-image.bbclass): use coreos specific package-group for IMAGE_INSTALL 2023-03-13 11:11:31 +01:00
Samuel Dolt e2a53121a5 Pull request #61: add devtool generate-uki command
Merge in ICO/coreos from feat/devtool-kernel to master

* commit '1c8f7e9163ba5fec161bb858643a57274ea07882':
  feat(devtool): add a generate-uki command
  fix(coreos-image-uki.bbclass): use APPENDS to set the kernel arguments
  refactor: use black to format python code in vscode
2023-03-08 16:29:30 +01:00
Samuel Dolt 1c8f7e9163 feat(devtool): add a generate-uki command
The generate-uki command can be used to build and sign new UKI (Unified
Kernel Image). By default all parameters are taken from bitbake but the
kernel command line and the device tree used can be customized
2023-03-08 15:45:08 +01:00
Samuel Dolt a5fcbaa3d4 fix(coreos-image-uki.bbclass): use APPENDS to set the kernel arguments 2023-03-08 11:14:00 +01:00
Samuel Dolt 75c190ab38 feat(coreos-container-image): systemd can be installed in the image
Allow to use systemd as an IMAGE_FEATURES inside a container image
2023-03-01 15:17:55 +01:00
Samuel Dolt 2f42fcb051 fix(coreos-image-ci): fix syntax error 2023-02-06 11:38:06 +01:00
Samuel Dolt f086fe20de Pull request #48: Feat/coreos device
Merge in ICO/coreos from feat/coreos-device to master

* commit '57107f5cea3ff2e61701c18753cacdada8d1e04f':
  feat(swupdate): install swupdate-progress by default
  feat(coreos-device): add a coreos-device script and a devtool plugin
2023-02-06 10:03:29 +01:00
Samuel Dolt 57107f5cea feat(swupdate): install swupdate-progress by default
swupdate-progress will automatically restart the device after
an update.
2023-02-03 14:12:53 +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 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 cfb1638fb4 feat(coreos-image-ci): add a special image class to generate CI file
We need to generate some more file to better integrate the CI system
with this repository. The new class generate a new IMAGE.ci-artifacts
file with the list of file that need to be uploaded by the CI to our
storage server. To enable this class, the CI need to add:

`COREOS_IMAGE_EXTRACLASSES += "coreos-image-ci"`

to the auto.conf configuration file inside the build directory.
2023-01-30 16:09:15 +01:00
Samuel Dolt 2b84253de8 feat(coreos-container-image): add COREOS_IMAGE_EXTRACLASSES support 2023-01-30 15:16:47 +01:00
Samuel Dolt c65869b9c9 fix(do_swuimage): use DEPENDS to get kernel arguments
WKS_KERNEL_ARGS was using previously inside COREOS to pass the
kernel arguments between the machine configuration and image
generation. This was already replaced by the APPEND variable
that do the same and is documented in oe-core.
2023-01-30 13:28:15 +01:00
Samuel Dolt f20fc6a32d fix(coreos-image): COREOS_IMAGE_EXTRACLASSES now work as expected
COREOS_IMAGE_EXTRACLASSES is used to ihnerit classes dynamically during
parsing, that mean that it can't depends on operator that operate after
parsing, like ??=, :append, ...

Now we use the ?= and += operator that operate during parsing
2023-01-30 13:25:35 +01:00
Samuel Dolt e83a1da19d feat(swupdate): add swupdate and .swu image generation 2023-01-24 15:28:00 +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 d1685d3068 refactor(container): rename the container image feature to podman 2022-12-02 14:23:22 +01:00
Samuel Dolt e9efb7027b feat(networkmanager): add networkmanager as an image feature 2022-12-02 14:23:22 +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
Patrick Vogelaar 85119d3ad1 Pull request #12: No ro FS for dev image and solidrun board improvements
Merge in ICO/coreos from feat/dev_image_improvements to master

* commit '412f3f3bb40d364624a85db267d092bdae4cea86':
  No ro FS for dev image and solidrun board improvements
2022-11-24 15:34:04 +01:00
Patrick Vogelaar 412f3f3bb4 No ro FS for dev image and solidrun board improvements
* dev image is now r/w which makes it easier to just try things out
* remove mount point from boot.src partition which causes it to not
  show in /etc/fstab. The presence of the entry caused boot problems.
2022-11-24 15:32:15 +01:00
Samuel Dolt 489a1a9764 Pull request #13: Add UEFI support
Merge in ICO/coreos from feat/uefi to master

* commit '25ac363358200694e85f9149f2480daec24c5377':
  documentation: fix typo
  meta-belden-coreos-bsp: add support for EFI and EFI Secure Boot
  coreos-doc: use python3-native instead of python3 from the host
  meta-belden-coreos-sanity: add some machine configuration checks
  meta-belden-coreos-bsp: add the beaglebone machine
  meta-belden-coreos-bsp: add beaglebone machine
  meta-belden-coreos-bsp: add layer
2022-11-18 09:24:11 +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
Patrick Vogelaar cbc5ba0cfd Update sanitychecker
* Update error text -> typo
* Add ubuntu 22.04 to the tested ditros
2022-11-09 06:52:49 +01:00
Patrick Vogelaar af70af4cd9 Pull request #10: Re-enable the read-only-rootfs
Merge in ICO/coreos from feat/reenable_ro_rootfs to master

* commit '128263b184370563a1b3ce422fd52871f7be434a':
  Re-enable the read-only-rootfs
2022-11-01 16:11:26 +01:00
Samuel Dolt 8220408791 meta-belden-coreos-sanity: add some machine configuration checks 2022-10-31 08:55:14 +01:00
Patrick Vogelaar 128263b184 Re-enable the read-only-rootfs 2022-10-27 22:22:14 +02:00
Samuel Dolt a7438b518d meta-belden-coreos-bsp: add the pc-x64 machine 2022-10-27 20:07:50 +02:00
Samuel Dolt e221f49cbf feat: allow CoreOS to be embedded in another repository 2022-10-26 14:16:34 +02:00
Patrick Vogelaar 33ec98c9b2 Pull request #6: Feat/marvell bsp
Merge in ICO/coreos from feat/marvell-bsp to master

* commit 'da856bdcd702efbf565381d4111803776ce69b1d':
  Add support for CN9130-CEX7
  feat: add meta-belden-marvell-bsp layer
2022-10-18 15:21:38 +02:00
Patrick Vogelaar da856bdcd7 Add support for CN9130-CEX7 2022-10-18 14:30:32 +02:00
Samuel Dolt 0b9a7d9c7e feat(coreos-sanity): add some checks to ensure that coreos policies are not overwritted 2022-10-13 15:26:57 +02:00
Samuel Dolt 614c12cdce feat(coros-image): add some basics image for coreos 2022-10-04 10:47:47 +02:00
Samuel Dolt 650d0f5949 feat(belden-coreos): add belden-coreos distro configuration 2022-09-29 16:53:43 +02:00