balena-os / meta-balena

A collection of Yocto layers used to build balenaOS images
https://www.balena.io/os
971 stars 115 forks source link

initrdscripts: make the kexec script fail hard in unexpected states #3449

Closed mtoman closed 2 weeks ago

mtoman commented 2 weeks ago

At this moment the kexec initrd script is skipped when ROOTFS_DIR is not defined or if the new rootfs is mounted, but does not contain a kernel image in the expected place. This is undesirable as we assume this is the last script executed by the balena bootloader.

This patch makes the kexec script always execute in the balena bootloader and makes it fail hard in unexpected states, which means the script is always an exit point for the balena bootloader, whether the actual kexec call succeeds or not.


Contributor checklist

Reviewer Guidelines

mtoman commented 2 weeks ago

@resin-jenkins retest this please

mtoman commented 2 weeks ago

@resin-jenkins retest this please

mtoman commented 2 weeks ago

@resin-jenkins retest this please

jakogut commented 2 weeks ago

@resin-jenkins retest this please

mtoman commented 2 weeks ago

@resin-jenkins retest this please

mtoman commented 2 weeks ago

@resin-jenkins retest this please