Use partition_switch to change the partition slot 24/267524/1
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 6 Dec 2021 16:10:16 +0000 (17:10 +0100)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 6 Dec 2021 16:10:16 +0000 (17:10 +0100)
Change-Id: I3e4c995190d62838e1c4cff464e831d9376710f4

scripts/upgrade-fota.sh

index 76d9f360e64cb2e8862e171f254a1cdfb9ee0b43..024314df33d11306f44abd2d02fc901300e3ca75 100644 (file)
@@ -139,7 +139,7 @@ reboot_to_fota() {
        flog "[Info] calling sync"
 
        flog "[Info] Switching board partition from $CURRENT_AB, to $NEXT_AB"
-       if ! echo "$NEXT_AB" > /mnt/inform/slot.bin; then
+       if ! partition_switch $NEXT_AB; then
                flog "[Error] Failed to switch board slot to $NEXT_AB"
                exit 1
        fi