From e0d723f9a0da28d09f58f51aa466feeff4f619a9 Mon Sep 17 00:00:00 2001 From: Werner Llácer Date: Tue, 29 Mar 2022 10:25:18 +0200 Subject: Correct exit when no disk is selected and we don't wish to continue (#1049) --- archinstall/lib/menu/global_menu.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'archinstall/lib/menu') 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 -- cgit v1.2.3-70-g09d2