summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo@foundries.io>2021-07-09 14:01:32 -0300
committerRicardo Salveti <ricardo@foundries.io>2021-07-09 14:27:07 -0300
commit764226dc51051fc6962f9122aced1851c1edd0e2 (patch)
tree88bfb259d102b42c516d18d14302738d38b52812
parent3fabe1e6e44e30eec4b849d8d8331a5aa12ffe8e (diff)
downloadmeta-updater-764226dc51051fc6962f9122aced1851c1edd0e2.tar.gz
image_types_ota.bbclass: add support for syslinux as OSTREE_BOOTLOADER
Add support for ostree to automatically identify and use syslinux as the preferred bootloader scheme when set via OSTREE_BOOTLOADER. Not forcing a build-time dependency at do_image_ota as multiple bootloaders are able to identify the syslinux format. Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
-rw-r--r--classes/image_types_ota.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass
index 2a20660..8af6637 100644
--- a/classes/image_types_ota.bbclass
+++ b/classes/image_types_ota.bbclass
@@ -21,6 +21,10 @@ IMAGE_CMD_ota () {
21 ln -s ../loader/grub.cfg ${OTA_SYSROOT}/boot/grub2/grub.cfg 21 ln -s ../loader/grub.cfg ${OTA_SYSROOT}/boot/grub2/grub.cfg
22 elif [ "${OSTREE_BOOTLOADER}" = "u-boot" ]; then 22 elif [ "${OSTREE_BOOTLOADER}" = "u-boot" ]; then
23 touch ${OTA_SYSROOT}/boot/loader/uEnv.txt 23 touch ${OTA_SYSROOT}/boot/loader/uEnv.txt
24 elif [ "${OSTREE_BOOTLOADER}" = "syslinux" ]; then
25 mkdir -p ${OTA_SYSROOT}/boot/syslinux
26 touch ${OTA_SYSROOT}/boot/loader/syslinux.cfg
27 ln -s ../loader/syslinux.cfg ${OTA_SYSROOT}/boot/syslinux/syslinux.cfg
24 else 28 else
25 bbfatal "Invalid bootloader: ${OSTREE_BOOTLOADER}" 29 bbfatal "Invalid bootloader: ${OSTREE_BOOTLOADER}"
26 fi 30 fi