Jump to content
  • 0

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


szp
 Share

Question

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

2 answers to this question

Recommended Posts

  • 0
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

Armbian is a community driven open source project. Do you like to contribute your code?

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...