Hi,
I would like to seek the community opinions regarding one feature.
It is mostly architectural, and I ask just because of encountering it, now more than once in company-made internal OTA systems, and seeing it being massively used, when available.
Although, to my knowledge, it is not present any existing publicly avaialable OTA providers offer it.
Does this behavior fit in standard OTA scenarios ?
I would like to know what is done elsewhere ![]()
Contex
Portal. Deployment creation page.
Feature Request
An option to request a ‘factory reset’ of the device together with the deployment.
Expected Behavior
Two options to mind:
- mender-managed: Mender clears all from the
/datapartition, except for what is needed by mender to operate the deployment (ex. leaving/data/mender/). - user-managed: an option
--factory-resetis passed to the user-supplied state scripts. The user is responsible to clear all data that that represents state. - others ?
Use Case
I list a few that come to mind:
- remote devices with suspect corrupt configuration
- devices coming from very old versions, now incompatible with cloud, or with deprecated configurations, that can be easily be reconfigured (ex. sitting in a drawer in a lab, re-purposed)
- devices under test, ex. the lava server every night wipes it and puts it to a clean version vx.x.x to test
Caviat
I acknowledge that the term ‘factory reset’ is ambiguous:
Ex.
- A device, let’s call it ‘TestDevice32’ sold in 2019, it was shipped with version
v2.4.0 - Current products, of the same model, are now shipped with current stable version
v4.1.0
Now, if the device ‘TestDevice32’ recevies today a ‘factory-reset’, should it get:
a) a clean v2.4.0, as it litterally it came out of factory (the role of the word factory) ?
b) or a clean v4.1.0, as current products now come out of factory ?
Another term might be used, I used ‘factory reset’ because of its widespread adoptions in user-facing device HMIs (smartphones, camers, etc..).
Thanks in advance for any opinion,
Have a great day,
