mid icon indicating copy to clipboard operation
mid copied to clipboard

On Linux, use /sys/class/dmi/id/product_uuid ?

Open nicolaspernoud opened this issue 1 month ago • 2 comments

Hello,

On linux, why do not use one of those ids : https://www.baeldung.com/linux/machine-id ? For example cat /sys/class/dmi/id/product_uuid ?

Best regards...

nicolaspernoud avatar Nov 24 '25 15:11 nicolaspernoud

@nicolaspernoud Interesting, I didn't know about that, but this one thing bothers me:

Of course, some machines are custom, so these entries may be ‘Not Specified’ or even empty, depending on the circumstances. In such cases, we can turn to other solutions.

doroved avatar Nov 24 '25 15:11 doroved

We could fallback to /etc/machine-id if none of the solutions listed works ? I tested on several machines, and /sys/class/dmi/id/product_uuid was provided every time.

nicolaspernoud avatar Nov 24 '25 15:11 nicolaspernoud

Any news on this ?

nicolaspernoud avatar Dec 02 '25 13:12 nicolaspernoud