> 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

That's what everybody believes until he tries. The problem is how to detect 
whether the config is old or new.
This might be hacked somehow for specific cases, but it's impossible to do in 
an acceptable way for a generic case. Note that compat 1.0->1.1 does not 
necessarily mean swconfig->DSA, so we have no general variable that will define 
which state we are in.
There is a reason why nobody provided a DSA migration script (or even tried 
AFAIK). This horse is dead.

(Doing -f without -n is a real world problem. They might pseudo-brick their 
devices. However, we have no better solution about that at the moment.)

Best

Adrian

> ;-)
> 
> Regards,

Attachment: openpgp-digital-signature.asc
Description: PGP signature

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to