Adding a NTP option to syncronize time.
This commit is contained in:
parent
93bc0ebd0f
commit
b45efe0983
|
|
@ -237,6 +237,9 @@ def ask_user_questions():
|
|||
if not archinstall.arguments.get('timezone', None):
|
||||
archinstall.arguments['timezone'] = archinstall.ask_for_a_timezone()
|
||||
|
||||
if not archinstall.arguments.get('ntp', False):
|
||||
archinstall.arguments['ntp'] = input("Would you like to use automatic time syncronization (ntp) with default time servers? N/y: ").strip().lower() in ('y', 'yes')
|
||||
|
||||
|
||||
def perform_installation_steps():
|
||||
print()
|
||||
|
|
@ -369,6 +372,9 @@ def perform_installation(mountpoint):
|
|||
if timezone := archinstall.arguments.get('timezone', None):
|
||||
installation.set_timezone(timezone)
|
||||
|
||||
if archinstall.arguments.get('ntp', False):
|
||||
installation.activate_ntp()
|
||||
|
||||
if (root_pw := archinstall.arguments.get('!root-password', None)) and len(root_pw):
|
||||
installation.user_set_pw('root', root_pw)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue