We should be consistent in combination of critical packages and replanning
We should ensure that critical packages are installed in consistent way, so we shouldn't update them their dependencies if we are going to replan. This can result in broken essential software like DNS resolver if library is updated and then replan is done.
-
Packages causing immediate replanning should be planned as soon as possible -
If package causes immediate replan and isn't critically requested we should print warning. -
Implement replan "immediate" and "finished". And document that "immediate" shold be used only for updater it self.
This should solve problem with nuci replanning in the middle of unbound update. After resolving this, revert https://gitlab.labs.nic.cz/turris/openwrt/commit/7180f486df5fbf8ae3cfe77577bc5dd780d0eaa9