Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/general.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-06-04 15:08:04 +0200
committerAnton Hvornum <anton@hvornum.se>2021-06-04 15:08:04 +0200
commit71b6efab69cab9bd97c647c7ccc7667149967a5c (patch)
tree36d294b739d08a0b1da5fde1aee315cea87d751a /archinstall/lib/general.py
parent7d60287a3d24303a4e4518b75058ffd2f1feca8d (diff)
parenta4033a7d3a94916f2b4972d212f9d0069fca39cd (diff)
Merge branch 'master' of github.com:archlinux/archinstall into torxed-rework-partitioning
Diffstat (limited to 'archinstall/lib/general.py')
-rw-r--r--archinstall/lib/general.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index 3b62c891..f72311c9 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -13,7 +13,7 @@ from typing import Union
from .exceptions import *
from .output import log
-
+from .storage import storage
def gen_uid(entropy_length=256):
return hashlib.sha512(os.urandom(entropy_length)).hexdigest()
@@ -265,6 +265,8 @@ class SysCommandWorker:
if not self.pid:
try:
os.execve(self.cmd[0], self.cmd, {**os.environ, **self.environment_vars})
+ if storage['arguments'].get('debug'):
+ log(f"Executing: {self.cmd}", level=logging.DEBUG)
except FileNotFoundError:
log(f"{self.cmd[0]} does not exist.", level=logging.ERROR, fg="red")
self.exit_code = 1