From 4c3f2e8a09dc9dd42f26e41f1e20b6db0555f638 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Thu, 2 Jun 2022 22:45:18 -0300 Subject: [PATCH] image_types_ota.bbclass: add support for none as OSTREE_BOOTLOADER Ostree has support for deploying without any bootloader specifics, by simply deploying just the configuration files under /boot/loader/entries, following the Boot Loader Specification implementation. This is useful for bootloaders other than grub and u-boot, as they can just implement reading/parsing BLS configs instead (e.g. systemd-boot). Signed-off-by: Ricardo Salveti --- classes/image_types_ota.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass index 02c5e99a..117f300e 100644 --- a/classes/image_types_ota.bbclass +++ b/classes/image_types_ota.bbclass @@ -25,6 +25,8 @@ IMAGE_CMD:ota () { mkdir -p ${OTA_SYSROOT}/boot/syslinux touch ${OTA_SYSROOT}/boot/loader/syslinux.cfg ln -s ../loader/syslinux.cfg ${OTA_SYSROOT}/boot/syslinux/syslinux.cfg + elif [ "${OSTREE_BOOTLOADER}" = "none" ]; then + ostree config --repo=${OTA_SYSROOT}/ostree/repo set sysroot.bootloader none else bbfatal "Invalid bootloader: ${OSTREE_BOOTLOADER}" fi