immortalwrt/package/base-files/files/lib
Sergey Ryazanov 2bb829ee47 base-files: prevent issues w/ overlay on powerloss after sysupgrade
Due to filesystem write caching the old configuration data could stay
out of flash for a long time during a first boot after the sysupgrade.
Power loss during this period could damage the overlay data and even
make device inaccessable via the network.

Fix this by syncing data to a flash as soon as the previous
configuration will be unpacked after the sysupgrade. Also sync the FS
state after the sysupgrade.tgz archive removing to prevent duplicative
extraction of a previous configuration.

Tested with AMD Geode based board.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
2020-10-13 18:39:53 +08:00
..
functions base-files: fix LED IDE trigger 2020-10-13 18:35:44 +08:00
preinit base-files: prevent issues w/ overlay on powerloss after sysupgrade 2020-10-13 18:39:53 +08:00
upgrade treewide: replace which with command -v 2020-08-13 23:30:21 +08:00
functions.sh base-files/functions.sh: use command -v instead of which 2020-07-12 12:25:13 +08:00