Skip to content

Commit e0d723f

Browse files
authored
Correct exit when no disk is selected and we don't wish to continue (#1049)
1 parent 02c715e commit e0d723f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

archinstall/lib/menu/global_menu.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def _setup_selection_menu_options(self):
9999
Selector(
100100
_('Specify superuser account'),
101101
lambda preset: self._create_superuser_account(),
102+
default={},
102103
exec_func=lambda n,v:self._users_resynch(),
103104
dependencies_not=['!root-password'],
104105
display_func=lambda x: self._display_superusers())
@@ -254,7 +255,8 @@ def _select_harddrives(self, old_harddrives : list) -> list:
254255
choice = Menu(prompt, ['yes', 'no'], default_option='yes').run()
255256

256257
if choice == 'no':
257-
return self._select_harddrives(old_harddrives)
258+
exit(1)
259+
258260

259261
return harddrives
260262

0 commit comments

Comments
 (0)