Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-06-21 17:47:30 +1000
committerGitHub <noreply@github.com>2023-06-21 09:47:30 +0200
commit1b5ecb65aabe546cea51da1de7fad61ff1d32525 (patch)
treedff81650417ba8f66b648c5ac03e4312770c6efa /archinstall/lib
parent03d228fee8f850bb58249d23fd7c17f742a7701b (diff)
Always verify permissions and check for log dir (#1874)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/output.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index b406d624..d266afa8 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -135,7 +135,7 @@ class Journald:
log_adapter.log(level, message)
-def check_log_permissions():
+def _check_log_permissions():
filename = storage.get('LOG_FILE', None)
log_dir = storage.get('LOG_PATH', Path('./'))
@@ -292,6 +292,10 @@ def log(
reset: bool = False,
font: List[Font] = []
):
+ # leave this check here as we need to setup the logging
+ # right from the beginning when the modules are loaded
+ _check_log_permissions()
+
text = orig_string = ' '.join([str(x) for x in msgs])
# Attempt to colorize the output if supported