On 19/07/21 21:11, Luiz Angelo Daros de Luca wrote:
This is not a migration script but a mitigation. A 21.02 image should
detect during boot if the current network config was for swconfig in a
system using DSA.
It could happen during early boot stages, after FS are mounted, before
services are started, something similar to uci-defaults, but not in a
"run once" way.
It would cover both upgrades with confs and restores. We are asking
the user to upgrade without saving confs but nothing will prevent them
from keeping settings while
using "sysupgrade -F" nor restoring an 19.07 backup "manually" into a
21.02. I think an expert dev could solve this one with a 5 line script
;-)

It's a 5 line script if you are migrating default switch config to new 
default switch config and assuming the user did not touch much.
With smart switch you could do some pretty elaborate setups and making a 
script that can actually migrate more than very basic configs is not 
easy at all.
-Alberto

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to