Skip to content

Commit

Permalink
Add skip for partitioning menus
Browse files Browse the repository at this point in the history
  • Loading branch information
svartkanin committed Jan 14, 2025
1 parent 457e790 commit f850620
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions archinstall/lib/interactions/disk_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def _preview_device_selection(item: MenuItem) -> str | None:
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_:
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit f850620

Please sign in to comment.