Skip to content

Commit 4aa8317

Browse files
authored
Add skip for partitioning menus (#3121)
1 parent 985775b commit 4aa8317

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

archinstall/lib/interactions/disk_conf.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def _preview_device_selection(item: MenuItem) -> str | None:
4949
multi=True,
5050
preview_style=PreviewStyle.BOTTOM,
5151
preview_size='auto',
52-
preview_frame=FrameProperties.max('Partitions')
52+
preview_frame=FrameProperties.max('Partitions'),
53+
allow_skip=True
5354
).run()
5455

5556
match result.type_:
@@ -143,8 +144,10 @@ def select_disk_config(
143144
output = 'You will use whatever drive-setup is mounted at the specified directory\n'
144145
output += "WARNING: Archinstall won't check the suitability of this setup\n"
145146

146-
path = prompt_dir(str(_('Root mount directory')), output, allow_skip=False)
147-
assert path is not None
147+
path = prompt_dir(str(_('Root mount directory')), output, allow_skip=True)
148+
149+
if path is None:
150+
return None
148151

149152
mods = disk.device_handler.detect_pre_mounted_mods(path)
150153

0 commit comments

Comments
 (0)