diff options
author | Ricardo Salveti <ricardo@foundries.io> | 2021-07-09 14:01:32 -0300 |
---|---|---|
committer | Ricardo Salveti <ricardo@foundries.io> | 2021-07-09 14:27:07 -0300 |
commit | 764226dc51051fc6962f9122aced1851c1edd0e2 (patch) | |
tree | 88bfb259d102b42c516d18d14302738d38b52812 | |
parent | 3fabe1e6e44e30eec4b849d8d8331a5aa12ffe8e (diff) | |
download | meta-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.bbclass | 4 |
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 |