Skip to content
Snippets Groups Projects
Verified Commit dcd7378f authored by Karel Koci's avatar Karel Koci :metal:
Browse files

lists/migrate3x: add step where we update only ubus

This introduces one additional update step to update ubus right after
updater. This separates ubus update to separate run and should ensure
that broken ubus state is limited to only few packages.
parent e92a17c2
No related merge requests found
......@@ -49,6 +49,22 @@ if not version_match or not self_version or version_match(self_version, "<63.0")
end
--[[
Ubus is used by init scripts to communicate with procd. The problem this creates
is that new version of ubus is unable to communicate with old ubusd. This means
that we have restart ubusd as soon as possible. We do it in postinst of ubus
package but there can be multiple service restarts before that and every such call
to ubus takes few minutes because of ubus timeouts. It also causes action to not
be executed. This uses replan to trick updater to update ubus as soon as possible
without updating anything else. First updater is updated. Then ubus is updated and
then rest of the system.
]]
if version_match and installed and installed["ubus"] and
version_match(self_version, ">=63.0") and
version_match(installed["ubus"].version, "<2018") then
Package("ubus", { replan = 'immediate' })
end
--[[
This same package as in Turris OS 3.x which contains script pulling in this
script. The difference is that Turris OS 4.x contains version 2.x of this package
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment