Beispiel #1
0
    def __init__(self,
                 board,
                 device='',
                 dryrun=False,
                 interactive=True,
                 enable_colors=True):
        """
        :param board: :class:`Board` instance.
        :param device: Device name (i.e. '/dev/sdb').
        :param dryrun: Enable dryrun mode. Systems commands will be logged,
            but not executed.
        :type dryrun: boolean
        :param interactive: Enable interactive mode. The user will
            be prompted before executing dangerous commands.
        :type interactive: boolean
        """
        """
        USBInstaller.__init__(self, board, device, dryrun,
                                 interactive, enable_colors)
        """

        self._l = utils.logger.get_global_logger()
        self._e = utils.executer.get_global_executer()
        self._e.enable_colors = enable_colors
        self._board = board
        self._usb = USB(device)
        self._dryrun = dryrun
        self._e.dryrun = dryrun
        self._usb.dryrun = dryrun
        self._board.dryrun = dryrun
        self._interactive = interactive
        self._partitions = []
Beispiel #2
0
 def __set_device(self, device):
     self._usb = USB(device)
     self._usb.dryrun = self._dryrun