Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-11-09 17:16:25 +0100
committerAnton Hvornum <anton@hvornum.se>2021-11-09 17:16:25 +0100
commit07255391cc060f6ef8edf137f65044bbf940ba52 (patch)
treebeb94f20fa203aeebf8ae817757986841d1df624 /examples
parentcd07dafaacec84954961fbbd8d6f4a2bc997410a (diff)
Automatically fill the hostname in user_config.json
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py2
1 files changed, 2 insertions, 0 deletions
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):