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

/etc/machine-id the same on every installation #167

Closed
rhuss opened this issue Apr 4, 2017 · 3 comments
Closed

/etc/machine-id the same on every installation #167

rhuss opened this issue Apr 4, 2017 · 3 comments

Comments

@rhuss
Copy link
Contributor

@rhuss rhuss commented Apr 4, 2017

First of all apologies if this is the wrong place for opening this issue (feel free to move it around)

I hit the following issue that on all my pi installations with Hypriot 1.4.0 I get the same /etc/machine-id. This causes issues when running an overlay network which uses this ID to calculate a virtual mac address.

Actually the same id 9989a26f06984d6dbadc01770f018e3b remains even after a reflash. And even stranger, when removing this file and calling systemd-machine-id-setup it recreates the id file with again this value. Looks for me a bit like an issue with how systemd extracts an UUID (it says "Initializing machine ID from D-Bus machine ID.", so maybe that's a constant ?)

The solution for now is that after flashing I call a

dbus-uuidgen > /etc/machine-id

or when using ansible with an ad-hoc ansible command.

ansible pis -u pirate -k -i hosts --become -m shell --args "dbus-uuidgen > /etc/machine-id"

Maybe one could add something similar to the initial startup of a freshly flashed Hypriot ?

@StefanScherer
Copy link
Member

@StefanScherer StefanScherer commented Apr 4, 2017

Same as #143, but thanks for more details.

@rhuss
Copy link
Contributor Author

@rhuss rhuss commented Apr 4, 2017

thanks and sorry for not checking the other issues first.

@StefanScherer
Copy link
Member

@StefanScherer StefanScherer commented Mar 22, 2018

Fixed with #179

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

Successfully merging a pull request may close this issue.

None yet
3 participants