<minor_version>0</minor_version>
<package_format>deb</package_format>
<package_management>apt</package_management>
+ <hostname>debian.invalid</hostname>
<mountpoints>
<mountpoint dev="/dev/debian/root">/</mountpoint>
<mountpoint dev="/dev/debian/usr">/usr</mountpoint>
<minor_version>0</minor_version>
<package_format>rpm</package_format>
<package_management>yum</package_management>
+ <hostname>fedora.invalid</hostname>
<mountpoints>
<mountpoint dev="/dev/VG/Root">/</mountpoint>
<mountpoint dev="/dev/sda1">/boot</mountpoint>
<minor_version>10</minor_version>
<package_format>deb</package_format>
<package_management>apt</package_management>
+ <hostname>ubuntu.invalid</hostname>
<mountpoints>
<mountpoint dev="/dev/sda2">/</mountpoint>
<mountpoint dev="/dev/sda1">/boot</mountpoint>
<major_version>6</major_version>
<minor_version>1</minor_version>
<windows_systemroot>/Windows</windows_systemroot>
+ <hostname>windows.invalid</hostname>
<mountpoints>
<mountpoint dev="/dev/sda2">/</mountpoint>
</mountpoints>
free (str);
);
+ str = guestfs_inspect_get_hostname (g, root);
+ if (!str) exit (EXIT_FAILURE);
+ if (STRNEQ (str, "unknown"))
+ XMLERROR (-1,
+ xmlTextWriterWriteElement (xo, BAD_CAST "hostname",
+ BAD_CAST str));
+ free (str);
+
output_mountpoints (xo, root);
output_filesystems (xo, root);
<optional><element name="package_format"><text/></element></optional>
<optional><element name="package_management"><text/></element></optional>
+ <optional><element name="hostname"><text/></element></optional>
<ref name="mountpoints"/>
<ref name="filesystems"/>