OpenWrt 21.02 status

Adrian Schmutzler mail at adrianschmutzler.de
Mon Jul 19 12:35:24 PDT 2021


> 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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210719/be07bfa2/attachment-0001.sig>


More information about the openwrt-devel mailing list