balena-os / meta-balena

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

balena-rollback/rollback-health: Allow old OS hooks to access efivars #3347

Closed acostach closed 8 months ago

acostach commented 8 months ago

This fixes rollback-health failures for boards like the Jetson Seeeed J4012, which updates efivars for capsule updates from container hooks and not from the current OS hooks. This problem was spotted while running Autokit tests as per internal thread https://balena.zulipchat.com/#narrow/stream/403752-channel.2Fsupport-help/topic/Missing.20binder.20module.20in.20L4T.2FBalenaOS/near/419425908

While the actual HUP works because of /sys being bindmounted by hostapp-update, rollbacks will fail to run the old OS hooks unless efivarfs is mounted.

Change-type: patch

Tested manually on the following configurations:

Seeed J4012

Orin NX:

Reviewer Guidelines