Change key sort

Is it possible to change the registration key from eth0 to wlan?

John

Hi @jjsteele,

You can use whatever source for device identity you like. By default it is the first MAC address, as implemented in mender/support/mender-device-identity at master · mendersoftware/mender · GitHub. But you can change it at will, as long as you make sure it is unique.

Note: this will work perfectly for newly provisioned devices. If you change this on an existing device, it will show up as a new one while the old identity still is around in the backend.

Greetz,
Josef

We have a situation where, for some reason, all the devices in the last 2 weeks have the same eth0 but different wlan. So this would allow me to change from eth0 to wlan. But the downside would be I would have duplicate devices through the whole database?

John

Exactly. That. You’ll have the devices “new”, active with no history, and “old”, inactive and with the history so far.

Greetz,
Josef

Where would this file go?

John

I don’t think this would help. I would have to be able to modify the client and as the eth0 is the same on all devices I wouldn’t be able to uplad a new artifact to it. I was hoping that there would be something on the server that could help.

John

Hi @jjsteele,

see Identity | Mender documentation on how and where to implement such.

So you essentially provisioned a number of devices which all show up as a single device entity in the management backend? Yup, then there’s nothing the server can do here.

Greetz,
Josfe