Thanks Jean.
 I used lshal so that it works on uid!=0.
https://lkml.org/lkml/2015/5/22/67
Do you think the above patch is any relevant or you see any downsides of it ?

On Thu, May 21, 2015 at 10:13 PM, Jean Delvare <[email protected]> wrote:
> Hi Navin,
>
> Le Thursday 21 May 2015 à 18:53 +0530, Navin P a écrit :
>> Hi,
>>    This patch adds an option for displaying uuid in rfc 4122 format
>> but not the smbios format.
>>     RFC 4122 format is used by kernel and lshal. In case they need
>
> hal is essentially dead so whatever it does is not relevant.
>
> The kernel is already supposed to be in sync with dmidecode, since v3.8
> [1]. However there was a bug in this area of the kernel, which I just
> fixed [2]. I suspect this is your actual problem.
>
> [1]
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=f1d8e614d74b09531b9a85e812485340f3df7b1c
> [2]
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5c1ac56b51b9d222ab202dec1ac2f4215346129d
>
>> this format they have the option  of getting from -r option.Also this
>> matches with kernel /sys/class/dmi/id/product_uuid
>
> /sys/class/dmi/id/product_uuid *is* the kernel, so you are not adding
> any information here.
>
>> junk@junk-HP-ZBook-15-G2:~/dmidecode/dmidecode$ sudo ./dmidecode -r |
>> grep -i uuid
>>         UUID: FF24355A-16B4-E411-91F9-1C545F06E0FF
>
> FYI,
> $ sudo ./dmidecode -s system-uuid
> would be faster.
>
>> junk@junk-HP-ZBook-15-G2:~/dmidecode/dmidecode$ sudo ./dmidecode  | grep -i 
>> uuid
>>         UUID: 5A3524FF-B416-11E4-91F9-1C545F06E0FF
>> junk@junk-HP-ZBook-15-G2:~/dmidecode/dmidecode$ sudo cat
>> /sys/class/dmi/id/product_uuid
>> FF24355A-16B4-E411-91F9-1C545F06E0FF
>> (...)
>> Attached the patch.
>> Posting it inline as well.
>
> Please backport the fix mentioned above to your kernel, and you'll be
> fine.
>
> --
> Jean Delvare
> SUSE L3 Support
>

_______________________________________________
https://lists.nongnu.org/mailman/listinfo/dmidecode-devel

Reply via email to