Remove HSM from global menu (#1559)
* Remove HSM from global menu * Update * Update * Removed sys import Unused import Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com> Co-authored-by: Anton Hvornum <anton.feeds+github@gmail.com>
This commit is contained in:
parent
c3862c5779
commit
e05df22986
|
|
@ -1,7 +1,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import sys
|
||||
from typing import Callable, Any, List, Iterator, Tuple, Optional, Dict, TYPE_CHECKING
|
||||
|
||||
from .menu import Menu, MenuSelectionType
|
||||
|
|
@ -261,8 +260,7 @@ class AbstractMenu:
|
|||
self._menu_options[selector_name].set_mandatory(True)
|
||||
self.synch(selector_name,omit_if_set)
|
||||
else:
|
||||
print(f'No selector found: {selector_name}')
|
||||
sys.exit(1)
|
||||
raise ValueError(f'No selector found: {selector_name}')
|
||||
|
||||
def _preview_display(self, selection_name: str) -> Optional[str]:
|
||||
config_name, selector = self._find_selection(selection_name)
|
||||
|
|
|
|||
|
|
@ -57,10 +57,6 @@ def ask_user_questions():
|
|||
# Specify disk encryption options
|
||||
global_menu.enable('disk_encryption')
|
||||
|
||||
if archinstall.arguments.get('advanced', False) or archinstall.arguments.get('HSM', None):
|
||||
# Enables the use of HSM
|
||||
global_menu.enable('HSM')
|
||||
|
||||
# Ask which boot-loader to use (will only ask if we're in UEFI mode, otherwise will default to GRUB)
|
||||
global_menu.enable('bootloader')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue