Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Llácer <wllacer@gmail.com>2022-03-29 10:25:18 +0200
committerGitHub <noreply@github.com>2022-03-29 10:25:18 +0200
commite0d723f9a0da28d09f58f51aa466feeff4f619a9 (patch)
treefc250884daf5034f2c7ed82eb235e3e5cbcc970c
parent02c715e22413261fff8f4c49c08438b3b7a2bdc6 (diff)
Correct exit when no disk is selected and we don't wish to continue (#1049)
-rw-r--r--archinstall/lib/menu/global_menu.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/menu/global_menu.py b/archinstall/lib/menu/global_menu.py
index 3f57941a..4274f7ee 100644
--- a/archinstall/lib/menu/global_menu.py
+++ b/archinstall/lib/menu/global_menu.py
@@ -99,6 +99,7 @@ class GlobalMenu(GeneralMenu):
Selector(
_('Specify superuser account'),
lambda preset: self._create_superuser_account(),
+ default={},
exec_func=lambda n,v:self._users_resynch(),
dependencies_not=['!root-password'],
display_func=lambda x: self._display_superusers())
@@ -254,7 +255,8 @@ class GlobalMenu(GeneralMenu):
choice = Menu(prompt, ['yes', 'no'], default_option='yes').run()
if choice == 'no':
- return self._select_harddrives(old_harddrives)
+ exit(1)
+
return harddrives