(arch_config_handler: ArchConfigHandler | None = None)
| 62 | |
| 63 | |
| 64 | async def main(arch_config_handler: ArchConfigHandler | None = None) -> None: |
| 65 | if arch_config_handler is None: |
| 66 | arch_config_handler = ArchConfigHandler() |
| 67 | |
| 68 | disk_config = await DiskLayoutConfigurationMenu(disk_layout_config=None).show() |
| 69 | arch_config_handler.config.disk_config = disk_config |
| 70 | |
| 71 | arch_config_handler.config.write_debug() |
| 72 | arch_config_handler.config.save() |
| 73 | |
| 74 | if arch_config_handler.args.dry_run: |
| 75 | return |
| 76 | |
| 77 | if not arch_config_handler.args.silent: |
| 78 | aborted = False |
| 79 | res: bool = tui.run(lambda: confirm_config(arch_config_handler.config)) |
| 80 | |
| 81 | if not res: |
| 82 | debug('Installation aborted') |
| 83 | aborted = True |
| 84 | |
| 85 | if aborted: |
| 86 | return await main(arch_config_handler) |
| 87 | |
| 88 | if arch_config_handler.config.disk_config: |
| 89 | fs_handler = FilesystemHandler(arch_config_handler.config.disk_config) |
| 90 | |
| 91 | if not delayed_warning(tr('Starting device modifications in ')): |
| 92 | return await main() |
| 93 | |
| 94 | fs_handler.perform_filesystem_operations() |
| 95 | |
| 96 | perform_installation(arch_config_handler) |
| 97 | |
| 98 | |
| 99 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected