Skip to content

Fix: lime sysupgrade lime owut - #1289

Open
a-gave wants to merge 2 commits into
libremesh:masterfrom
a-gave:fix/lime-sysupgrade-lime-owut
Open

a-gave wants to merge 2 commits into
libremesh:masterfrom
a-gave:fix/lime-sysupgrade-lime-owut

Conversation

@a-gave

@a-gave a-gave commented Oct 2, 2026

Copy link
Copy Markdown
Contributor
  • lime-owut: fix exec uci-defaults only once
  • lime-system: fix lime-sysupgrade (fix 1285)

@ilario

ilario commented Oct 6, 2026

Copy link
Copy Markdown
Member
  • lime-owut: fix exec uci-defaults only once

Ooh, right, you added this as the uci-defaults scripts would run again upon an update, right?
Do you consider we should eveeeentually check all the uci-defaults scripts and make sure they do not mess up after an update?

* lime-system: fix lime-sysupgrade (fix 1285)

Thanks! What about the leading slash (pointed out in #1285), should we document somewhere how to use lime-sysupgrade with files? Maybe just writing this here and removing the slash from /etc/sysupgrade.conf?

minimum-essential /etc/sysupgrade.conf' # Files defining the list of files and directories to backup when upgrade. Relative to /lib/upgrade/keep.d if no '/' defined.

@a-gave

a-gave commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author
  • lime-owut: fix exec uci-defaults only once

Ooh, right, you added this as the uci-defaults scripts would run again upon an update, right?

Yes, it is meant to avoid duplicated configs among updates.

Do you consider we should eveeeentually check all the uci-defaults scripts and make sure they do not mess up after an update?

Not sure. It it much probably related to the usage of add_list that on its own do not avoid to add duplicated entries
So I think a recheck could be only needed for uci-defaults script that use the add_list function. But honestly is the first time that i face this issue, maybe other lime-packages do the same more cleanly. Will recheck soon

* lime-system: fix lime-sysupgrade (fix 1285)

Thanks! What about the leading slash (pointed out in #1285), should we document somewhere how to use lime-sysupgrade with files? Maybe just writing this here and removing the slash from /etc/sysupgrade.conf?

minimum-essential /etc/sysupgrade.conf' # Files defining the list of files and directories to backup when upgrade. Relative to /lib/upgrade/keep.d if no '/' defined.

There was an error in my reporting: the leading / was just a fixable warning. The code was broken by the refactor linked to both shfmt (formatting) and shellcheck (linting). The script itself was ok before the two refactors: one has broken the calculation of the list of files to be preserved; the second the introduced a double quoting of this list (to make shellcheck happy) which has broken the recognition of this as an array by the posix /bin/sh. This has been fixed here with the introduction of # shellcheck disable=SC2086

@ilario ilario left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

This branch is waiting to be deployed

1 waiting deployment
physical-lab — 31b30ac4 Waiting Oct 2, 2026 by a-gave via restore-lab-vlans #170
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants