Automatically fill the hostname in user_config.json

This commit is contained in:
Anton Hvornum 2021-11-09 17:16:25 +01:00
parent cd07dafaac
commit 07255391cc
1 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,8 @@ def ask_user_questions():
# Get the hostname for the machine
if not archinstall.arguments.get('hostname', None):
archinstall.arguments['hostname'] = input('Desired hostname for the installation: ').strip(' ')
if not archinstall.arguments['hostname']:
archinstall.arguments['hostname'] = "archinstall"
# Ask for a root password (optional, but triggers requirement for super-user if skipped)
if not archinstall.arguments.get('!root-password', None):