This is a more working version. Inspection (partially) succeeds on a
real guest this time :-)
You can test it out on a real guest (in this case, a CentOS disk image
located at /tmp/centos-6.img) by doing:
$ ./run guestfish -v -x -a /tmp/centos-6.img
<fs> run
<fs> debug sh "guestfs-inspection --verbose"
which will print lots of debugging, and at the end the list of facts
from inspecting the image.
Rich.