Beispiel #1
0
 def mount(self, image, fs, mountpoint):
     """
     Mounts the specified image file at the given mountpoint.
     :param image: path to the image file to be mounted.
     :param fs: file system of the imaged partition.
     :param mountpoint: directory to be used for mounting.
     :return: None
     """
     self.mountpoint = mountpoint
     self._thread = ExtendedThread(exception_callback=self._exception_callback,
                                   target=self._mount_command, args=(image, fs, mountpoint),
                                   daemon=True)
     self._thread.start()
     self._wait_and_set_status()