Add skip for partitioning menus (#3121)

This commit is contained in:
Daniel Girtler 2025-01-22 04:42:16 +11:00 committed by GitHub
parent 985775b143
commit 4aa8317b7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

View File

@ -49,7 +49,8 @@ def select_devices(preset: list[disk.BDevice] | None = []) -> list[disk.BDevice]
multi=True,
preview_style=PreviewStyle.BOTTOM,
preview_size='auto',
preview_frame=FrameProperties.max('Partitions')
preview_frame=FrameProperties.max('Partitions'),
allow_skip=True
).run()
match result.type_:
@ -143,8 +144,10 @@ def select_disk_config(
output = 'You will use whatever drive-setup is mounted at the specified directory\n'
output += "WARNING: Archinstall won't check the suitability of this setup\n"
path = prompt_dir(str(_('Root mount directory')), output, allow_skip=False)
assert path is not None
path = prompt_dir(str(_('Root mount directory')), output, allow_skip=True)
if path is None:
return None
mods = disk.device_handler.detect_pre_mounted_mods(path)