meta-digi/meta-digi-arm/recipes-bsp/libubootenv
Hector Palacios f55c084064 libubootenv: flush changes to fw_env.config on post inst script
On devices with NAND as storage media, a post install script
modifies the fw_env.config file basing on the NAND geometry.
This only happens once after deployment, typically on production
environments. If the power is removed soon after the post install
script runs (which is a normal procedure on manufacturing
environments), there are chances that pending file system
operations have not been flushed, which may occasionally lead
to the fw_env.config file end up empty on the next reboot.

This commit adds a sync at the end of the post-install script
to guarantee the changes are written to the file system.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-9059
2024-06-26 11:25:23 +02:00
..
libubootenv libubootenv: rework patchset with Digi-specific functionality 2024-05-28 17:57:01 +02:00
libubootenv_%.bbappend libubootenv: flush changes to fw_env.config on post inst script 2024-06-26 11:25:23 +02:00