Use /run/upgrade-sysroot instead of /system 79/267679/2 accepted/tizen/unified/20211213.133531 submit/tizen/20211209.154145
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 7 Dec 2021 11:38:06 +0000 (12:38 +0100)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Thu, 9 Dec 2021 13:14:35 +0000 (14:14 +0100)
Change-Id: I1b781134eafc29b07d0e6410407c665e3bd911df

scripts/upgrade-fota.sh
scripts/upgrade-partial.sh

index 024314d..21bb13e 100644 (file)
@@ -6,7 +6,7 @@ set -o errtrace -e -o pipefail
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
 
 
-FOTA_UPDATE_PREFIX="/system"
+FOTA_UPDATE_PREFIX="/run/upgrade-sysroot"
 VERSION_FILE="$FOTA_UPDATE_PREFIX/opt/etc/version"
 DO_RW_UPDATE_FILE="$FOTA_UPDATE_PREFIX/opt/.do_rw_update"
 
@@ -151,6 +151,11 @@ reboot_to_fota() {
        fi
 }
 
+prepare_fota_update_dir() {
+       mkdir -p ${FOTA_UPDATE_PREFIX}
+}
+
+prepare_fota_update_dir
 check_ab_partition_scheme
 check_used_block_device
 if ! mount; then
index 212a7df..0e4c296 100644 (file)
@@ -153,7 +153,7 @@ upgrade_images() {
        done < "$FOTA_DIR/$CONFIG_FILE"
 }
 
-FOTA_UPDATE_PREFIX="/system"
+FOTA_UPDATE_PREFIX="/run/upgrade-sysroot"
 
 mount_partition() {
        GPT_LABEL="$1"
@@ -256,6 +256,11 @@ run_ro_update() {
        return 0
 }
 
+prepare_fota_update_dir() {
+       mkdir -p ${FOTA_UPDATE_PREFIX}
+}
+
+prepare_fota_update_dir
 check_ab_partition_scheme
 check_used_block_device
 check_args "$@"