sysupgrade: preserve symlinks in backups
Signed-off-by: Catalin Patulea <catalinp@google.com> SVN-Revision: 42783
This commit is contained in:
parent
e2c3c2280c
commit
7860c9707a
1 changed files with 2 additions and 2 deletions
|
@ -102,14 +102,14 @@ add_uci_conffiles() {
|
||||||
local file="$1"
|
local file="$1"
|
||||||
( find $(sed -ne '/^[[:space:]]*$/d; /^#/d; p' \
|
( find $(sed -ne '/^[[:space:]]*$/d; /^#/d; p' \
|
||||||
/etc/sysupgrade.conf /lib/upgrade/keep.d/* 2>/dev/null) \
|
/etc/sysupgrade.conf /lib/upgrade/keep.d/* 2>/dev/null) \
|
||||||
-type f 2>/dev/null;
|
-type f -o -type l 2>/dev/null;
|
||||||
opkg list-changed-conffiles ) | sort -u > "$file"
|
opkg list-changed-conffiles ) | sort -u > "$file"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
add_overlayfiles() {
|
add_overlayfiles() {
|
||||||
local file="$1"
|
local file="$1"
|
||||||
find /overlay/etc/ -type f | sed \
|
find /overlay/etc/ -type f -o -type l | sed \
|
||||||
-e 's,^/overlay/,/,' \
|
-e 's,^/overlay/,/,' \
|
||||||
-e '\,/META_[a-zA-Z0-9]*$,d' \
|
-e '\,/META_[a-zA-Z0-9]*$,d' \
|
||||||
-e '\,/functions.sh$,d' \
|
-e '\,/functions.sh$,d' \
|
||||||
|
|
Loading…
Reference in a new issue