Ejemplo n.º 1
0
 def manual(self):
     self.ui.set_body(FilesystemView(self.model, self))
     if self.answers['guided']:
         self.finish()
     if self.answers['manual']:
         self._run_iterator(self._run_actions(self.answers['manual']))
         self.answers['manual'] = []
Ejemplo n.º 2
0
 def manual(self):
     title = _("Filesystem setup")
     footer = (_("Select available disks to format and mount"))
     self.ui.set_header(title)
     self.ui.set_footer(footer)
     self.ui.set_body(FilesystemView(self.model, self))
     if self.answers['guided']:
         self.finish()
Ejemplo n.º 3
0
 def manual(self):
     self.ui.set_body(FilesystemView(self.model, self))
     if self.answers['guided']:
         self.finish(self.app.confirm_install())
     if self.answers['manual']:
         self.app.aio_loop.create_task(
             self._run_actions(self.answers['manual']))
         self.answers['manual'] = []
Ejemplo n.º 4
0
    def filesystem(self, reset=False):
        # FIXME: Is this the best way to zero out this list for a reset?
        if reset:
            log.info("Resetting Filesystem model")
            self.model.reset()

        title = "Filesystem setup"
        footer = ("Select available disks to format and mount")
        self.ui.set_header(title)
        self.ui.set_footer(footer, 30)
        self.ui.set_body(FilesystemView(self.model, self.signal))
Ejemplo n.º 5
0
 async def _guided_choice(self, choice):
     status = await self.app.wait_with_progress(
         self.endpoint.guided.POST(choice))
     self.model = FilesystemModel(status.bootloader)
     self.model.load_server_data(status)
     if self.model.bootloader == Bootloader.PREP:
         self.supports_resilient_boot = False
     else:
         release = lsb_release()['release']
         self.supports_resilient_boot = release >= '20.04'
     self.ui.set_body(FilesystemView(self.model, self))
Ejemplo n.º 6
0
 async def _reset(self):
     status = await self.endpoint.reset.POST()
     self.app.ui.block_input = False
     self.model.load_server_data(status)
     self.ui.set_body(FilesystemView(self.model, self))
Ejemplo n.º 7
0
 def manual(self):
     self.ui.set_body(FilesystemView(self.model, self))
     if self.answers['guided']:
         self.finish()
Ejemplo n.º 8
0
 def manual(self):
     self.ui.set_body(FilesystemView(self.model, self))