Skip to content

Commit

Permalink
Merge pull request #1370 from jluebbe/download-size-hint
Browse files Browse the repository at this point in the history
src/config_file: add a hint that max-bundle-download-size is not used for streaming
  • Loading branch information
ejoerns committed Apr 4, 2024
2 parents 1b0b9a4 + 6ccdc42 commit cadd397
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ Example configuration:
Defines the maximum downloadable bundle size in bytes, and thus must be
a simple integer value (without unit) greater than zero.
It overwrites the compiled-in default value of 8388608 (8 MiB).
If RAUC is configured with streaming support, this has no effect, as the
bundle is not downloaded as a whole.

``variant-name`` (optional)
String to be used as variant name for this board.
Expand Down
2 changes: 2 additions & 0 deletions src/config_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,8 @@ gboolean load_config(const gchar *filename, RaucConfig **config, GError **error)
} else if (ierror) {
g_propagate_error(error, ierror);
return FALSE;
} else if (ENABLE_STREAMING) {
g_message("Using max-bundle-download-size with streaming has no effect.");
}
if (c->max_bundle_download_size == 0) {
g_set_error(
Expand Down

0 comments on commit cadd397

Please sign in to comment.