From: Luiz Angelo Daros de Luca Date: Mon, 3 Feb 2025 22:58:14 +0000 (-0300) Subject: base-files: sysupgrade: update backup exclusion list X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c146f29e8287ef313af7b3d36fb231997beb0b8;p=thirdparty%2Fopenwrt.git base-files: sysupgrade: update backup exclusion list The list of files excluded from backup was outdated. Signed-off-by: Luiz Angelo Daros de Luca Link: https://github.com/openwrt/openwrt/pull/17847 Signed-off-by: Hauke Mehrtens --- diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade index c27857a022c..a5004de4769 100755 --- a/package/base-files/files/sbin/sysupgrade +++ b/package/base-files/files/sbin/sysupgrade @@ -217,10 +217,14 @@ build_list_of_backup_overlay_files() { ( cd /overlay/upper/; find .$SAVE_OVERLAY_PATH \( -type f -o -type l \) $find_filter | sed \ -e 's,^\.,,' \ -e '\,^/etc/board.json$,d' \ + -e '\,^/etc/luci-uploads/\.placeholder,d' \ -e '\,/[^/]*-opkg$,d' \ -e '\,^/etc/urandom.seed$,d' \ + -e '\,^/etc/apk/world$,d' \ -e "\,^$INSTALLED_PACKAGES$,d" \ -e '\,^/usr/lib/opkg/.*,d' \ + -e '\,^/lib/apk/.*,d' \ + -e '\,^/run$,d' \ ) | grep -v -x -F -f $packagesfiles > "$file" rm -f "$packagesfiles"