Save downloaded artifact in persistent storage for reuse

We have a menderized system with the following characteristics:

  1. The persistent storage partition is significantly larger than the root partition.
  2. The internet connection is unstable and has a high data cost.

Is it possible to configure mender to download the mender artifact to a directory within the persistent storage partition, allowing it to be reused in case a second installation attempt is needed? Our wish is to avoid downloading the artifact multiple times due to internet connectivity issues and high data cost.

Hi @penlect!

The artifact is usually not stored anywhere, but streamed directly to the target partition, hence not easily cached in the way you described. If your use case benefits from such, you could implement this as an Update Module. Those have access to the payload contents and would be able to store them in a persistent manner. For more details, see the documentation here

Greetz,
Josef