]> git.ipfire.org Git - thirdparty/openwrt.git/commit
base-files: sysupgrade: exclude apk files from backup 22937/head
authorEric Fahlgren <ericfahlgren@gmail.com>
Wed, 15 Apr 2026 01:50:37 +0000 (18:50 -0700)
committerRobert Marko <robimarko@gmail.com>
Thu, 16 Apr 2026 19:22:22 +0000 (21:22 +0200)
commit038bc85849e2ee4f3f949cbd192159211822c2bc
tree7a13aea15b8cd8e881f6d5154f3c6acf1ffb5023
parent7915d9a153524446e193f987c2d7c0841934eba2
base-files: sysupgrade: exclude apk files from backup

Exclude more apk related files from the sysupgrade backup list when
using the various options that scan /etc for changes.

Ensure removal of the system generated distfeeds list, as that
contains kernel- and version-specific urls and should never be
retained.

Also exclude any '*.apk-new' files, equivalent to the old '*-opkg'
files, which may have been created during package installation.

Example before
  $ sysupgrade -l -c | grep apk
  /etc/apk/keys/buildroot.pem
  /etc/apk/repositories.d/customfeeds.list
  /etc/apk/repositories.d/distfeeds.list
  /etc/owut.d/pre-install.sh.apk-new
  /etc/config/adblock.apk-new

After
  $ sysupgrade -l -c | grep apk
  /etc/apk/keys/buildroot.pem
  /etc/apk/repositories.d/customfeeds.list

Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22937
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/base-files/files/sbin/sysupgrade