[Ovirt-devel] [PATCH] Changed the source for UUID to be dmidecode for now.

David Lutterkort dlutter at redhat.com
Thu Jun 26 21:17:29 UTC 2008


On Wed, 2008-06-25 at 16:45 -0400, Darryl L. Pierce wrote:
> +
> +    VENDOR=`dmidecode | grep Vendor | awk ' { print $2; } '`
> +    UUID=`dmidecode | grep UUID | awk ' { print $2; } '`
> +

Why not use 'dmidecode -s system-manufacturer' and 'dmidecode -s
system-uuid' ? If that's not doable for some reason, you should run
'dmidecode -t 1' to restrict the output to system info.

Looking for 'Vendor' in the dmidecode output might give you the Bios
Vendor, not the system vendor - at least, that's what happens on one of
my systems.

David




More information about the ovirt-devel mailing list