Fix clone_partitions not performing cloning in online upgrade 05/316105/3 accepted/tizen_unified_dev accepted/tizen/unified/20240819.150116 accepted/tizen/unified/dev/20240821.053453 accepted/tizen/unified/x/20240820.013144
authorAdam Michalski <a.michalski2@partner.samsung.com>
Tue, 13 Aug 2024 13:41:18 +0000 (15:41 +0200)
committerAdam Michalski <a.michalski2@partner.samsung.com>
Wed, 14 Aug 2024 08:54:14 +0000 (10:54 +0200)
commit1a84b9dc5cff6b5204351cc26dab2945880fd015
tree3c7301cceddca8cc79ad15cc4836fb53f8988226
parent44e80d34b30e6f97d0a00ea4ccb3f78e283e2520
Fix clone_partitions not performing cloning in online upgrade

In order for the upgrade state to be completed, upgrade_progress_status
must be equal to 100. Previously this value was set by the
online-update-success service, but this service is executed after the
upgrade-manager service. As a result, the upgrade state is never
switched from "ready" to "completed" preventing clone_partitions from
taking its job.

The solution is to take over the responsibility for setting the upgrade
progress status by the update.sh script instead of the
online-update-success.sh (which is executed from online-update-success
service). This way handling of the progress becomes unified regardless
of the upgrade type.

Change-Id: I1d599251986dac7a378a44545e8dcce285ccab89
scripts/rw-upgrade/offline-update-finalize.sh.in
scripts/rw-upgrade/online-update-success.sh.in
scripts/rw-upgrade/update.sh.in