+
+ # This inspects the given Disk and
+ # returns all root filesystems of the operating systems on this disk
+ root_filesystem = self.con.inspect_os()
+
+ # If we found more the one rootfile system we throw an error
+ # because we do not support multi boot systems
+ if len(root_filesystem) > 1:
+ raise DiskExeption("Found more then one operating system on the given disk.")
+
+ # We cannot go on if we found no operating system
+ if len(root_filesystem) == 0:
+ raise DiskExeption("Found no operating system on the given disk.")
+
+ root_filesystem = root_filesystem.pop()
+
+ # Get mountpoints of all filesystems accociated with this operationg system
+ tmp = self.con.inspect_get_mountpoints(root_filesystem)
+
+ # Sort mountpoints by length to mount / before /usr
+ # We are using an ordered dict here to keep the order of the keys
+ self.mountpoints = collections.OrderedDict(sorted(tmp.items(), key=lambda t: len(t[0])))
+
+ self.log.debug(self.mountpoints)
+
+ # Print some nice information about the found operationg system
+ self.log.info("Arch of the installed operating system: {}".format(
+ self.con.inspect_get_arch(root_filesystem)))
+ self.log.info("Distribution of the installed operating system: {}".format(
+ self.con.inspect_get_distro(root_filesystem)))
+