Request for Information - DMI/SMBIOS - why is machine-id reported instead of csproduct uuid

Questions about Wine on Linux
Locked
rdepaoli
Level 2
Level 2
Posts: 14
Joined: Wed Jan 29, 2025 11:43 am

Request for Information - DMI/SMBIOS - why is machine-id reported instead of csproduct uuid

Post by rdepaoli »

Under Wine, the command
>> wmic path win32_computersystemproduct get uuid
reports the machine-id, not the product_uuid.

The reason seems to be the function /wine/dlls/ntdll/unix/system.c "get_system_uuid", which reads
>> "/var/lib/dbus/machine-id", and not
>> "/sys/class/dmi/id/product_uuid".
This does not look like a bug, but a conscious decision.

However, while machine-id and product_uuid may have the same value, that is not always the case.

Any information about why this approach was taken would be appreciated.

Note:
If this solution was implemented as a workaround for limitations of old releases of Wine/Linux, maybe it can now be changed to report the product_id?
Locked