Change-Id: I1b781134eafc29b07d0e6410407c665e3bd911df
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"
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
done < "$FOTA_DIR/$CONFIG_FILE"
}
-FOTA_UPDATE_PREFIX="/system"
+FOTA_UPDATE_PREFIX="/run/upgrade-sysroot"
mount_partition() {
GPT_LABEL="$1"
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 "$@"