diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-01-09 10:52:52 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-01-09 10:52:52 +0100 |
commit | 3839b0df19ed779f19defa7bb113c4930e15b745 (patch) | |
tree | 4f5c75dcc52336237fc3f728c332c5f1d52b8904 /util/write_config.py | |
parent | cd5cf703c4ef5f99787f407b122738e087fbfc36 (diff) | |
parent | 457c01bfcd6346b8a06420d721fa02a216cea9bf (diff) | |
download | archinstall-3839b0df19ed779f19defa7bb113c4930e15b745.tar archinstall-3839b0df19ed779f19defa7bb113c4930e15b745.tar.zst archinstall-3839b0df19ed779f19defa7bb113c4930e15b745.zip |
Merge branch 'feature_luks' into devel
Diffstat (limited to 'util/write_config.py')
-rw-r--r-- | util/write_config.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/util/write_config.py b/util/write_config.py index 8f9dae9..17653f1 100644 --- a/util/write_config.py +++ b/util/write_config.py @@ -42,7 +42,7 @@ print("Please type in the hostname of your new machine:") config["hostname"] = input() -# Desktop or no Desktop +# Desktop or no desktop print("Do you want to install a desktop? [Y/n]:") answer = input() @@ -58,6 +58,18 @@ print("Please select your username (like 'paul' or 'alice'):") config["admin_username"] = input() +# System encryption + +print("System encryption protects all your data if your device is stolen.") +print("A second password will be required at startup to decrypt the system.") +print("Do you want to encrypt your system? [Y/n]") +answer = input() +if answer in ["", "Y", "y", "Yes", "yes"]: + config["system_encryption"] = "yes" +else: + config["system_encryption"] = "no" + + # Write config to json file config_json = json.dumps(config, indent=4) |