[Ovirt-devel] [PATCH] Changed the source for UUID to be dmidecode for now.
Daniel P. Berrange
berrange at redhat.com
Wed Jun 25 18:38:41 UTC 2008
On Wed, Jun 25, 2008 at 01:58:05PM -0400, Darryl L. Pierce wrote:
> - ovirt-identify-node -s $SRV_HOST -p $SRV_PORT
> + UUID=`/usr/sbin/dmidecode | grep -i uuid | awk '{ print $2; }'`
Don't use dmidecode - this is x86 specific and won't work in ia64/ppc I
believe. Instead use HAL to get it
eg
$ lshal | grep system.hardware.uuid
system.hardware.uuid = 'E9CD5280-4897-11CB-9596-A088B277D677' (string)
This has added benefit of not needing root privileges
Regards,
Daniel.
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the ovirt-devel
mailing list