base-files: sysupgrade: update backup exclusion list

The list of files excluded from backup was outdated.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17847
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Luiz Angelo Daros de Luca 2025-02-03 19:58:14 -03:00 committed by Hauke Mehrtens
parent 1d3f33b6b1
commit 2c146f29e8

View File

@ -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"