Jump to content

installing the OS does not generate a unique /etc/machine-id


szp

Recommended Posts

Armbianmonitor:

Hi there,

I was expecting /etc/machine-id to be unique for every install, but it is static which was very unexpected (I use it as the basis of machine-specific identifier which should have been globally unique). 

 

fixing it up was easy enough:

 

rm -f /etc/machine-id
rm -f /var/lib/dbus/machine-id
dbus-uuidgen --ensure
systemd-machine-id-setup

 

Shouldn't this be done when the root fs is being resized on the first boot?

Link to comment
Share on other sites

4 hours ago, szp said:

I was expecting /etc/machine-id to be unique for every install, but it is static which was very unexpected (I use it as the basis of machine-specific identifier which should have been globally unique). 

 

Check around on the threads here - I do recall this popping up before, and there was a solution to establish a UUID on initial startup for systemd

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines