7 if len (sys.argv) != 2:
8 raise (Error ("disk [image]"))
11 g = guestfs.GuestFS ()
12 g.add_drive_opts (disk, readonly=1)
16 roots = g.inspect_os ()
18 raise (Error ("inspect_vm: no operating systems found"))
21 mps = g.inspect_get_mountpoints (root)
23 if len(a[0]) > len(b[0]):
25 elif len(a[0]) == len(b[0]):
32 g.mount_ro (mp_dev[1], mp_dev[0])
33 except RuntimeError as msg:
34 print "%s (ignored)" % msg
36 apps = g.inspect_list_applications (root)
38 if re.search ('firefox', app['app_name'], re.I):
39 print ("%s: Firefox version %s" %
40 (disk, app['app_version']))