Verified Commit b50ca55c authored by Karel Koci's avatar Karel Koci 🤘 Committed by Karel Koci
Browse files

lists/base-fix: Reset u-boot environment configuration

This triggers removal of uboot environment configuration from system so
we can set there correct one by installing new version of uboot-tools.

In case of Turris Mox we have to do also additional trickery as file we
want to generate is part of mox-support package originally. With this
update it is dropped but we have to let it be removed fist before we
recreate it by installing new version of uboot-tools otherwise updater
would remove that file as part of mox-support package cleanup phase.
parent 1a632e4f
......@@ -136,3 +136,16 @@ if installed and installed["luci-lighttpd"] and not installed["turris-webapps-lu
-- interfere with install priorities.
Install("luci-base", { reinstall = true, condition = "luci-base" })
-- With uboot-tools version 2018.03-4 environment configuration was fixed. Problem
-- is that it is not applied in default as script checks for existence of
-- /etc/config/ubootenv file and does nothing.
-- In case of Mox we also move fw_env.config from mox-support package. Because of
-- that we have to update mox-support first so we would not remove generated file.
if not version_match or not installed or
(installed["uboot-tools"] and version_match(installed["uboot-tools"].version, "<2018.03-4")) then
Package("uboot-tools", { deps = "fix-uboot-env-reset" })
if board ~= "mox" then
Package("uboot-tools", { deps = "mox-support" })
Markdown is supported
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