From 07255391cc060f6ef8edf137f65044bbf940ba52 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 9 Nov 2021 17:16:25 +0100 Subject: Automatically fill the hostname in user_config.json --- examples/guided.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples') diff --git a/examples/guided.py b/examples/guided.py index b1c34464..4a942fe0 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -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): -- cgit v1.2.3-54-g00ecf