kirkwood: sysupgrade: drop unnecessary UBI to UBI logic
authorBjørn Mork <bjorn@mork.no>
Sat, 20 Mar 2021 10:48:25 +0000 (11:48 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 3 Dec 2021 11:23:02 +0000 (12:23 +0100)
commit25382dff8584ffc70917e9f693681fb7d9c06826
treef8148bb95b76c7ef6f5775f0ecef492448e19612
parent0efb169aadc868768fde4a22c3be8a3742f73dbe
kirkwood: sysupgrade: drop unnecessary UBI to UBI logic

The purpose of this code seems to be to avoid issues caused
by partially overwriting an existing UBI partition, where some
of the erase counters would be reset but not the unmodified
ones.  This problem has been solved in a more generic way by
the UBI EOF marker. This ensures that any old PEBs after the
marker are properly initialized.  It is therefore unnecessary
to erase the whole partition before flashing a new OpenWrt
factory image.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
target/linux/kirkwood/base-files/lib/upgrade/linksys.sh