openwrt/package/base-files/files
Sergey Ryazanov 880c1f0336 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-06-03 16:49:28 +02:00
..
bin base-files: generate config files with correct permissions 2020-04-30 21:51:12 +02:00
etc base-files: prevent issues w/ overlay on powerloss after sysupgrade 2020-06-03 16:49:28 +02:00
lib base-files: prevent issues w/ overlay on powerloss after sysupgrade 2020-06-03 16:49:28 +02:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: use jshn lib for ubus sysupgrade argument generation 2020-01-14 00:06:03 +01:00
usr base-files: validate firmware for compatibility with backup 2019-09-08 09:10:30 +02:00