treewide: when copying a backup file always specify dest name

$CONF_TAR shouldn't be assumed to always point to the sysupgrade.tgz.
This change makes code more generic and allows refactoring $CONF_TAR.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 62dbe361a1)
This commit is contained in:
Rafał Miłecki
2019-09-04 16:57:40 +02:00
parent 37caec2d5e
commit 1b9a4f0cb4
12 changed files with 12 additions and 12 deletions

View File

@@ -54,7 +54,7 @@ platform_check_image() {
platform_copy_config_emmc() {
mkdir -p /recovery
mount -o rw,noatime /dev/mmcblk0p1 /recovery
cp -af "$CONF_TAR" /recovery/
cp -af "$CONF_TAR" "/recovery/$BACKUP_FILE"
sync
umount /recovery
}