nerves_system_rpi4
nerves_system_rpi4 copied to clipboard
Set uboot env `nerves_fw_active` during upgrade task
trafficstars
This addresses an issue where the reported active partition (nerves_fw_active) is not correct after an upgrade and before validation has occurred.
Firmware validation can take a while, and if you are to get a console into a device shortly after an upgrade, the reported active firmware slot via the KV store is incorrect and creates a bit of confusion.
This PR is semi linked with https://github.com/nerves-project/nerves_runtime/pull/385
I've tested these two PRs on my local device connected to NervesCloud and everything is reporting correctly, including in MOTD (I'm using nerves_motd from hex).