Usage of word "add" was somehow misleading in those functions:
1. They don't really add (as in: append) anything. Result files are
created from scratch.
2. It wasn't clear what adding files means. It could be understood as
adding actual files somewhere (to existing archive?).
Also the word "add" was also a bit ambiguous.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
\( -type f -o -type l \) $filter 2>/dev/null
}
-add_conffiles() {
+build_list_of_backup_config_files() {
local file="$1"
( list_static_conffiles "$find_filter"; list_changed_conffiles ) |
return 0
}
-add_overlayfiles() {
+build_list_of_backup_overlay_files() {
local file="$1"
local packagesfiles=$1.packagesfiles
echo "Cannot find '/overlay/upper/etc', required for '-c' or '-o'" >&2
exit 1
}
- sysupgrade_init_conffiles="add_overlayfiles"
+ sysupgrade_init_conffiles="build_list_of_backup_overlay_files"
else
- sysupgrade_init_conffiles="add_conffiles"
+ sysupgrade_init_conffiles="build_list_of_backup_config_files"
fi
find_filter=""