0
szp

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

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?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0