treewide: don't hardcode "sysupgrade.tgz" file name
authorRafał Miłecki <rafal@milecki.pl>
Wed, 4 Sep 2019 14:57:39 +0000 (16:57 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 20:28:40 +0000 (16:28 -0400)
commitfd56f34c1ee53f8768aa062a46c6f06464596e4d
treeef690c2e52d0cb34e4d4df9b86e1a4e2b16934db
parent5441fd0f25b31ae34be9aad4bcc51c80f822e7e4
treewide: don't hardcode "sysupgrade.tgz" file name

1) Add BACKUP_FILE and use it when copying an archive to be restored
   after sysupgrade (on the next preinit).
2) Use CONF_TAR for copying backup prepared by the /sbin/sysupgrade

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit bf390478727ac5f4f9d6fb684de48b8150bcec67)
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/lib/upgrade/nand.sh
target/linux/sunxi/base-files/lib/preinit/79_move_config
target/linux/x86/base-files/lib/preinit/79_move_config