summaryrefslogtreecommitdiff
path: root/bin/write_config.py
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-11-25 13:39:43 +0100
committerxengineering <mail2xengineering@protonmail.com>2019-11-25 13:39:43 +0100
commitd45d41ee0bd52b28226e69317bca1c284009b397 (patch)
tree8ccfb55c07adb593e42ad7e76e673480094f1e3a /bin/write_config.py
parent63d89031176687de9de41c7665d86cea64717c6e (diff)
downloadarchinstall-d45d41ee0bd52b28226e69317bca1c284009b397.tar
archinstall-d45d41ee0bd52b28226e69317bca1c284009b397.tar.zst
archinstall-d45d41ee0bd52b28226e69317bca1c284009b397.zip
First version with desktop installation support.
Diffstat (limited to 'bin/write_config.py')
-rw-r--r--bin/write_config.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/write_config.py b/bin/write_config.py
index c01eb47..704ea33 100644
--- a/bin/write_config.py
+++ b/bin/write_config.py
@@ -47,6 +47,16 @@ print("Please type in the hostname of your new machine:")
config["hostname"] = input()
+# Desktop or no Desktop
+
+print("Do you want to install a desktop? [Y/n]:")
+answer = input()
+if answer in ["", "Y", "y", "Yes", "yes"]:
+ config["desktop"] = "yes"
+else:
+ config["desktop"] = "no"
+
+
# Write config to json file
config_json = json.dumps(config, indent=4)