Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/global_menu.py
diff options
context:
space:
mode:
authorDaemon Coder <11915375+codefiles@users.noreply.github.com>2023-05-04 10:04:35 -0400
committerGitHub <noreply@github.com>2023-05-04 16:04:35 +0200
commitf211906a5afcfad553070748a779c3166d2b3b4b (patch)
treed300af146b352f091bdb38fd3e91fec179c320b7 /archinstall/lib/global_menu.py
parentfd83f073f3e84feb1388ef739c1096f7d4a741de (diff)
Remove obsolete enabling of NTP in ISO (#1729)
* Remove obsolete enabling of NTP in ISO * Fixed flake8 linting * Remove `activate_ntp()` * Update comment --------- Co-authored-by: Anton Hvornum <anton@hvornum.se>
Diffstat (limited to 'archinstall/lib/global_menu.py')
-rw-r--r--archinstall/lib/global_menu.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/archinstall/lib/global_menu.py b/archinstall/lib/global_menu.py
index bc9164ee..0ec057f3 100644
--- a/archinstall/lib/global_menu.py
+++ b/archinstall/lib/global_menu.py
@@ -3,7 +3,7 @@ from __future__ import annotations
from typing import Any, List, Optional, Union, Dict, TYPE_CHECKING
from . import disk
-from .general import SysCommand, secret
+from .general import secret
from .menu import Selector, AbstractMenu
from .models import NetworkConfiguration
from .models.bootloader import Bootloader
@@ -18,7 +18,6 @@ from .user_interaction import ask_for_audio_selection
from .user_interaction import ask_for_bootloader
from .user_interaction import ask_for_swap
from .user_interaction import ask_hostname
-from .user_interaction import ask_ntp
from .user_interaction import ask_to_configure_network
from .user_interaction import get_password, ask_for_a_timezone
from .user_interaction import select_additional_repositories
@@ -164,7 +163,6 @@ class GlobalMenu(AbstractMenu):
self._menu_options['ntp'] = \
Selector(
_('Automatic time sync (NTP)'),
- lambda preset: self._select_ntp(preset),
default=True)
self._menu_options['__separator__'] = \
Selector('')
@@ -323,14 +321,6 @@ class GlobalMenu(AbstractMenu):
password = get_password(prompt=prompt)
return password
- def _select_ntp(self, preset :bool = True) -> bool:
- ntp = ask_ntp(preset)
-
- value = str(ntp).lower()
- SysCommand(f'timedatectl set-ntp {value}')
-
- return ntp
-
def _select_disk_config(
self,
preset: Optional[disk.DiskLayoutConfiguration] = None