Hi,
I’m flashing Raspberry Pi CM4s with balena OS. I have it setup such that the device is first registered in balenaCloud. I take the device UUID (used for later reference in our db) and then use the same UUID to flash it. I prepare the image before flashing with balena os configure --device <uuid>
But now I want to combine this with a premade config.json containing udev rules. To my surprise if I use balena os configure --device <uuid> --config config.json
, the final image does not contain the pregenerated UUID anymore and when the device comes online it gets assigned a new UUID automatically.
Is this intended behavior? And if so, is there another way to inject both the udev rules and a device UUID into the image?