Request to terminate UI app after whole processes are finished 52/246952/1 accepted/tizen/unified/20201110.125001 submit/tizen/20201110.022441
authorKichan Kwon <k_c.kwon@samsung.com>
Thu, 5 Nov 2020 08:49:35 +0000 (17:49 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Thu, 5 Nov 2020 09:14:12 +0000 (18:14 +0900)
- 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>
scripts/fota-init.sh

index ab6559a..cd03a05 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