immortalwrt/package/base-files/files/etc
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
..
board.d update source 2017-09-06 19:19:45 +08:00
hotplug.d/net Revert "base-files: update" 2019-11-24 01:27:26 +08:00
init.d base-files: prevent issues w/ overlay on powerloss after sysupgrade 2020-10-13 18:39:53 +08:00
iproute2 fix permission 2019-09-30 14:27:46 +08:00
rc.button base-files: add reboot only button handler 2020-10-13 18:31:39 +08:00
sysctl.d Revert "files: sync from openwrt v19.07 (#2690)" 2020-02-03 12:33:25 +08:00
uci-defaults base-files: replace backticks by $(...) 2020-10-13 18:32:40 +08:00
banner fix permission 2019-09-30 14:27:46 +08:00
banner.failsafe fix permission 2019-09-30 14:27:46 +08:00
bench.log base-files: add empty bench.log file to avoid error info caused by coremark 2020-02-01 23:30:12 +08:00
device_info fix permission 2019-09-30 14:27:46 +08:00
diag.sh base-files: diag: restore default trigger for 'boot' LED 2020-10-13 18:26:08 +08:00
ethers fix permission 2019-09-30 14:27:46 +08:00
fstab fix permission 2019-09-30 14:27:46 +08:00
group base-files/hotplug: fix dedicated group for tty devices 2020-10-13 18:26:29 +08:00
hosts fix permission 2019-09-30 14:27:46 +08:00
inittab fix permission 2019-09-30 14:27:46 +08:00
openwrt_release fix permission 2019-09-30 14:27:46 +08:00
openwrt_version fix permission 2019-09-30 14:27:46 +08:00
os-release update source 2017-09-06 19:19:45 +08:00
passwd fix permission 2019-09-30 14:27:46 +08:00
preinit update source 2017-09-06 19:19:45 +08:00
profile base-files: profile: easy to use 2020-03-30 01:05:29 +08:00
protocols fix permission 2019-09-30 14:27:46 +08:00
rc.common base-files: add enabled commands to service rc.common 2020-10-13 18:33:49 +08:00
rc.local Revert "base-files: update" 2019-11-24 01:27:26 +08:00
services fix permission 2019-09-30 14:27:46 +08:00
shadow fix permission 2019-09-30 14:27:46 +08:00
shells fix permission 2019-09-30 14:27:46 +08:00
shinit base-files: Add /etc/shinit for non-login shell init 2020-03-08 01:34:56 +08:00
sysctl.conf fix permission 2019-09-30 13:52:50 +08:00
sysupgrade.conf fix permission 2019-09-30 13:52:50 +08:00