Closed Khartir closed 4 years ago
Oh I think user-data file is interpreted only once on first boot. With occi and device-init it was possible to reconfigure hostname etc.
@StefanScherer does that mean that it's no longer possible to make changes without rewriting the images?
Or can I just copy the files manually to /boot/device-init.yaml?
@hannonq We no longer install device-init, so copying the yaml to /boot doesn’t help.
Due to the way cloud-init works I think there are some 'instance' related files that would need to be removed from the card to retrigger some of the per-instance modules (such as write_files).
Looks like the 'just update the config' functionality was removed quite some time ago: https://github.com/hypriot/flash/commit/19552a2e7a6e9e277aeb2e88edd24d3ec96a6ead
Both the readme and the usage state:
However it is not at all clear how this works. Running
./flash -u user-data
only prints the usage. I assume that this only works with specific options? If so, it would be nice if these are mentioned.