]> git.ipfire.org Git - thirdparty/openwrt.git/commit
base-files: sysupgrade: avoid cat missing conffiles_static 22071/head
authorNick Hainke <vincent@systemli.org>
Tue, 17 Feb 2026 23:42:43 +0000 (00:42 +0100)
committerRobert Marko <robimarko@gmail.com>
Thu, 19 Mar 2026 16:50:12 +0000 (17:50 +0100)
commit10db6fc26e88eb92c864b9e579c3d16c25040a5a
treec1b211f419204407456d3b125265e850bc8c8291
parentd35d92a54123c64dfe5dd89f64c2b41cbf5dc7c6
base-files: sysupgrade: avoid cat missing conffiles_static

If the user removes all /lib/apk/packages/*.conffiles* files to prevent
sysupgrade from preserving configuration, the glob no longer matches and
sysupgrade ends up calling cat on a non-existent path:

  cat: can't open '/lib/apk/packages/*.conffiles_static': No such file or directory

Fix this by using find cmd.

Signed-off-by: Nick Hainke <vincent@systemli.org>
Link: https://github.com/openwrt/openwrt/pull/22071
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/base-files/files/sbin/sysupgrade