Skip to content

Commit

Permalink
image_types_ota.bbclass: add support for syslinux as OSTREE_BOOTLOADER
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ricardosalveti committed Jul 9, 2021
1 parent 3fabe1e commit 764226d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/image_types_ota.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ IMAGE_CMD_ota () {
ln -s ../loader/grub.cfg ${OTA_SYSROOT}/boot/grub2/grub.cfg
elif [ "${OSTREE_BOOTLOADER}" = "u-boot" ]; then
touch ${OTA_SYSROOT}/boot/loader/uEnv.txt
elif [ "${OSTREE_BOOTLOADER}" = "syslinux" ]; then
mkdir -p ${OTA_SYSROOT}/boot/syslinux
touch ${OTA_SYSROOT}/boot/loader/syslinux.cfg
ln -s ../loader/syslinux.cfg ${OTA_SYSROOT}/boot/syslinux/syslinux.cfg
else
bbfatal "Invalid bootloader: ${OSTREE_BOOTLOADER}"
fi
Expand Down

0 comments on commit 764226d

Please sign in to comment.