7 assert (len (sys.argv) == 2)
10 g = guestfs.GuestFS ()
11 g.add_drive_opts (disk, readonly=1)
14 roots = g.inspect_os ()
16 raise (Error ("inspect_vm: no operating systems found"))
19 mps = g.inspect_get_mountpoints (root)
21 if len(a[0]) > len(b[0]):
23 elif len(a[0]) == len(b[0]):
30 g.mount_ro (mp_dev[1], mp_dev[0])
31 except RuntimeError as msg:
32 print "%s (ignored)" % msg
34 apps = g.inspect_list_applications (root)
36 if re.search ('firefox', app['app_name'], re.I):
37 print ("'%s' version: %s" % (app['app_name'], app['app_version']))