balena-cli icon indicating copy to clipboard operation
balena-cli copied to clipboard

CLI reconfiguring dev variant balenaOS images to prod by default

Open vipulgupta2048 opened this issue 2 years ago • 0 comments

When downloading unmanaged dev balenaOS images from balena.io/os, and using balena os configure to configure them then the CLI configures them back to the production variant by default.

Steps to reproduce

  1. Download a dev image from balena.io/os
  2. Mount the image and confirm in the config.json that developmentMode=true
  3. Use balena os configure IMAGE_PATH -f FLEET_NAME to configure image for balenaCloud
  4. Check again and the developmentMode=true option would have been deleted.

Feature request

Instead of configure images back to production variant by default, it would be better if there is an extra prompt to select between prod and dev variants. I am aware of this flag: https://www.balena.io/docs/reference/balena-cli/#--dev but changing the default behavior that has been like this for years now might not be ideal. I feel like adding a prompt provides the right nudge to the users to be in control of the OS configuration as they see fit.

Context: https://www.flowdock.com/app/rulemotion/r-product/threads/TSFbsP3fyBac9sG-P3hcxtLMs2o

vipulgupta2048 avatar Jun 06 '22 12:06 vipulgupta2048