Request to terminate UI app after whole processes are finished 94/249994/1 accepted/tizen_6.0_unified tizen_6.0 accepted/tizen/6.0/unified/20201221.100352 submit/tizen_6.0/20201218.164853
authorKichan Kwon <k_c.kwon@samsung.com>
Thu, 5 Nov 2020 08:49:35 +0000 (17:49 +0900)
committerJeon Sang-Heon <sh95.jeon@samsung.com>
Fri, 18 Dec 2020 07:44:38 +0000 (07:44 +0000)
- In current, UI app terminates when progress is 100%
  - It means only tota-ua is finished
- However, there are some post processes
  - e.g. dm-verity hash remaking
- To prevent black screen during post process,
  UI app will not be terminated until initrd-fota requests

Change-Id: I9e4ff181f17f9db76917fa765c092451412dfdba
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
(cherry picked from commit 2697cde44e13dfcbec59beca74249f24e9042f9e)

scripts/fota-init.sh

index ab6559a10d8a5be9dbff3759e6131ae65b6d8a01..cd03a0585f1289b4fc0adc5128d4dc2f1e5a2e5b 100755 (executable)
@@ -348,6 +348,10 @@ fi
 remake_hash_table
 remake_result=$?
 
+RO_PROGRESS_FILE=/tmp/upgrade/ro_progress
+if [ -f ${RO_PROGRESS_FILE} ]; then
+       echo -1 > ${RO_PROGRESS_FILE}
+fi
 umount_partitions
 
 if [ "$fota_result" = "0" ] && [ "$remake_result" = "0" ]; then