1 <meta charset="utf-8"/>
2 <link rel="stylesheet" href="style.css" type="text/css"/>
3 <script src="code.js" type="text/javascript"></script>
6 <h1>Using libguestfs from Python</h1>
10 <b>Inspect</b> —
15 roots = <b>g.inspect_os</b> ()
17 raise (Error ("no operating systems found"))
19 raise (Error ("multi-boot operating system"))
22 type = <b>g.inspect_get_type</b> (root)
23 distro = <b>g.inspect_get_distro</b> (root)
24 major = <b>g.inspect_get_major_version</b> (root)
25 minor = <b>g.inspect_get_minor_version</b> (root)
27 mps = <b>g.inspect_get_mountpoints</b> (root)