diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-06-30 11:36:38 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-06-30 11:36:38 +0100 |
commit | 76bd81820f50a390b7e853d65f41b29a37e63f43 (patch) | |
tree | 512d7959d3654259ba0b48337829873bbd70796c /inspector | |
parent | 8c5bdc3e12947580e91c018b71adf9ad3128bb75 (diff) | |
download | libguestfs-76bd81820f50a390b7e853d65f41b29a37e63f43.tar.gz libguestfs-76bd81820f50a390b7e853d65f41b29a37e63f43.tar.xz libguestfs-76bd81820f50a390b7e853d65f41b29a37e63f43.zip |
inspector: Update documentation to cover <icon> element.
This updates commit 7f16c346bbeba2f2fe3c31ccb85158178a284d84.
Diffstat (limited to 'inspector')
-rwxr-xr-x | inspector/virt-inspector.pod | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/inspector/virt-inspector.pod b/inspector/virt-inspector.pod index 2192b399..4d916a1b 100755 --- a/inspector/virt-inspector.pod +++ b/inspector/virt-inspector.pod @@ -285,6 +285,27 @@ Note that this only covers permanent local filesystem mappings, not things like network shares. Furthermore NTFS volume mount points may not be listed here. +=head2 E<lt>iconE<gt> + +Virt-inspector is sometimes able to extract an icon or logo for the +guest. The icon is returned as base64-encoded PNG data. Note that +the icon can be very large and high quality. + + <operatingsystems> + <operatingsystem> + ... + <icon> + iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......] + [... many lines of base64 data ...] + </icon> + +To display the icon, you have to extract it and convert the base64 +data back to a binary file. Use an XPath query or simply an editor to +extract the data, then use the coreutils L<base64(1)> program to do +the conversion back to a PNG file: + + base64 -i -d < icon.data > icon.png + =head2 INSPECTING INSTALL DISKS, LIVE CDs Virt-inspector can detect some operating system installers on @@ -353,6 +374,7 @@ versions of virt-inspector with different names: L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, +L<base64(1)>, L<http://libguestfs.org/>. =head1 AUTHORS |