Details
-
Type:
Task
-
Status: Done
-
Priority:
Medium
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:
-
Story Points:3
-
Backlog:yes
Description
Mender command line installation should reject artifacts with state scripts. The reason is that the effects of installing an artifact with state scripts are not reproducible when installing using the command line, because the scripts will not go through the same states. So I think we should reject such updates on the command line to be safe. If you need to use the command line you should use an artifact that doesn't have state scripts.
Acceptance criteria after discussion:
- -rootfs command line argument should by default reject artifacts with state scripts.
- There should be a -f option to override the default and install the artifact anyway.
- State scripts should not run if the artifact is installed from command line.