upgrade-scripts: Store the log message before exit_error 99/301099/5
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 8 Nov 2023 11:20:15 +0000 (20:20 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 20 Nov 2023 07:01:24 +0000 (16:01 +0900)
commit2ca20c59908825403378f7e12b68ab946f2bc476
treea969abd92037ac5c3107959d8349a0e613f74554
parent2be92348f8ba6eabcdc743d0aa8b2f4431d43fd1
upgrade-scripts: Store the log message before exit_error

The created files of tmp directory will be removed after rebooting.
That makes a difficult to debug when there is a problem.
To remain the log message, copy all log files from /tmp/ to /var/log/fota/ before exit_error.
If error is occurred, there should be the log files.

Change-Id: I63bd28c9e2256ea3a417ee02c3f6c7a0e49641cf
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
scripts/upgrade-support/upgrade-common.inc