Exemplo n.º 1
0
 def boot_extend(self):
     run_detached(self.resize_script,
                  self.platform_config.get_platform_log(),
                  self.platform_config.get_ssh_port())
Exemplo n.º 2
0
 def __run_detached(self, command):
     self.logger.info('ssh command: {0}'.format(command))
     output = run_detached(command, self.platform_config.get_platform_log(),
                           self.platform_config.get_ssh_port())
     self.logger.info(output)
Exemplo n.º 3
0
 def disk_format(self, device):
     run_detached(
         '{0} {1}'.format(self.platform_config.get_disk_format_script(),
                          device), self.platform_config.get_platform_log(),
         self.platform_config.get_ssh_port())
Exemplo n.º 4
0
    def upgrade_snapd(self, channel):
        script = self.platform_config.get_snapd_upgrade_script()

        run_detached('{0} {1}'.format(script, channel),
                     self.platform_config.get_platform_log(),
                     self.platform_config.get_ssh_port())