diff --git a/input/oobe/data/bin/login b/input/oobe/data/bin/login index 25fca8c..24d93e5 100755 --- a/input/oobe/data/bin/login +++ b/input/oobe/data/bin/login @@ -82,11 +82,18 @@ ff02::2 ip6-allrouters\ while True: username = input("First user (Administrator): ").lower().strip(" ") if username == "root": continue + + print("Encrypt user? Recommended for machines that may be stolen or spying relatives. (y/n)") + encrypt = mchoice(["y","n"]) + ucommand = ["adduser"] + if encrypt == "y": ucommand.append("--encrypt-home") + ucommand = ucommand + ["--gecos","",username] + try: call(["id","-u",username]) except: try: - call(["adduser",username]) + call(ucommand) except: try: call(["deluser","--remove-home",username]) diff --git a/input/oobe/modscript b/input/oobe/modscript index aa2909c..bc75aa0 100755 --- a/input/oobe/modscript +++ b/input/oobe/modscript @@ -1,3 +1,3 @@ #!/usr/bin/env bash -export OPUS_PACKAGES="$OPUS_PACKAGES sudo keyboard-configuration network-manager python3" +export OPUS_PACKAGES="$OPUS_PACKAGES sudo keyboard-configuration network-manager python3 ecryptfs-utils" export OPUS_PACKAGES_DL="$OPUS_PACKAGES console-setup locales tzdata" \ No newline at end of file