Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-01-24 23:41:45 +0100
committerAnton Hvornum <anton@hvornum.se>2021-01-24 23:41:45 +0100
commita58331868e784886764873c7d85573d74f36248a (patch)
tree1304556bc020047fa7f624b8416ae2b026c56947
parent73191b921efc206a518276379a4484807e052d85 (diff)
Added debug output as well as corrected output formatting in log().
-rw-r--r--archinstall/lib/luks.py2
-rw-r--r--archinstall/lib/output.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/luks.py b/archinstall/lib/luks.py
index 1c78bc83..e1f14bab 100644
--- a/archinstall/lib/luks.py
+++ b/archinstall/lib/luks.py
@@ -26,7 +26,7 @@ class luks2():
def encrypt(self, partition, password, key_size=512, hash_type='sha512', iter_time=10000, key_file=None):
# TODO: We should be able to integrate this into the main log some how.
# Perhaps post-mortem?
- log(f'Encrypting {partition}', level=LOG_LEVELS.Info)
+ log(f'Encrypting {partition} (This might take a while)', level=LOG_LEVELS.Info)
if not key_file:
key_file = f"/tmp/{os.path.basename(self.partition.path)}.disk_pw" # TODO: Make disk-pw-file randomly unique?
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index baa454ec..956ad0c4 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -116,5 +116,5 @@ def log(*args, **kwargs):
# Finally, print the log unless we skipped it based on level.
# We use sys.stdout.write()+flush() instead of print() to try and
# fix issue #94
- sys.stdout.write(string)
+ sys.stdout.write(f"{string}\n")
sys.stdout.flush() \ No newline at end of file