On Wed, May 23, 2012 at 04:20:56PM +0200, Marc-André Lureau wrote: > Hi > > Wouldn't something like this be a quick way to identify an ISO quite precisely? > > iso-info --no-header -l /home/elmarco/GNOME-3.5.1-LiveUSB.iso | tail > -n +3 | sha1sum We should not assume we either have access to the ISO image, nor rely on the output format of an external command. iso-info may change the way it formats data. We might not even have the ISO image, for example, we may only have access to specific metadata fields via some remote metadata API like udev or libvirt. That's why we need to explicitly look at specific metadata attributes of the image. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|