Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os configure not allowing configuring with compatible device type fleets #2819

Open
majorz opened this issue Aug 23, 2024 · 1 comment
Open

Comments

@majorz
Copy link

majorz commented Aug 23, 2024

Expected Behavior

balena os configure should allow configuring an OS image with a different, but compatible device type (e.g. OS image with raspberrypi4-64 device type and a raspberrypi3 fleet).

This worked on pre-2022 CLI versions.

Actual Behavior

balena os configure only allows configuring an OS image with a fleet of the same device type:

The device type of the provided OS image raspberrypi4-64, does not match the expected device type raspberrypi3

We should rather use balena.models.os.isArchitectureCompatibleWith to check compatibility instead of comparing for exact device type match.

Steps to Reproduce the Problem

  1. Create a Raspberry Pi 3 (32-bit) empty test fleet on the dashboard (e.g. archtest).
  2. Download a Raspberry Pi 4 OS image:
$ balena os download raspberrypi4-64 --version v6.0.10+rev1.prod -o os.img
  1. Configure the OS image:
$ balena os configure os.img --fleet archtest --config-network ethernet
The device type of the provided OS image raspberrypi4-64, does not match the expected device type raspberrypi3

Additional References

The commit that introduce the check seems to be #2556

@thgreasi
Copy link
Member

thgreasi commented Aug 23, 2024

When trying to run balena os configure with an OS image that is of a different device type than the one that's default for the fleet, users are expected to also use the --device-type parameter, eg:

balena os configure ../path/rpi4.img -f MyRpi3Fleet --device-type raspberrypi4-64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants