Merge branch 'tizen' into tizen_6.5 17/269217/1 accepted/tizen/6.5/unified/20220114.125903 submit/tizen_6.5/20220113.114948 submit/tizen_6.5/20220114.100816
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 11 Jan 2022 10:48:06 +0000 (11:48 +0100)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 11 Jan 2022 10:48:06 +0000 (11:48 +0100)
Change-Id: Id855b32023c17f6dcbee0c34dbe682656332f735

1  2 
upgrade/update-finalize.sh.in

index b6de3d396e68beb6b10ad1a1129f619639228b32,e1f119bfe80d60802f7e0910d1ff33696063066e..78235164c3d340f4d56a27d4790317acad81f8c3
@@@ -13,11 -13,12 +13,13 @@@ els
  fi
  
  # TOOD: check if system is stable
- if true; then
+ UPDATE_SUCCESS=1
+ if [ -z ${UPDATE_PREPARE_ERR+x} ] && [ "${UPDATE_SUCCESS}" == "1" ]; then
+       /usr/bin/device_board_clear_boot_mode
        COMMIT_CHANGES
+       /usr/bin/device_board_set_boot_success
++      reboot -f
+ else
+       reboot -f fota
  fi
- # TODO: Replace this by calling the appropriate commands
- touch /tmp/set_BOOTING_OK
- touch /tmp/booting_change_bootmode
- reboot -f