From 3bdead03900355ca0b27a78855a602fdd10ebb30 Mon Sep 17 00:00:00 2001 From: Daniel E Rodriguez Rivera <134472520+ddx2tb@users.noreply.github.com> Date: Sun, 28 Jul 2024 17:16:46 -0500 Subject: [PATCH] Reposition os.execve call to enable debug logging before child process termination (#2593) * Update Spanish translation for 'greeter' * Moved the os.execve call below the debug logging statement in SysCommandWorker --- archinstall/lib/general.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index 8dbf23ff..5c9096f1 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -320,10 +320,10 @@ class SysCommandWorker: error(f"Unexpected {exception_type} occurred in {self.cmd}: {e}") raise e - os.execve(self.cmd[0], list(self.cmd), {**os.environ, **self.environment_vars}) - if storage['arguments'].get('debug'): + if storage.get('arguments', {}).get('debug'): debug(f"Executing: {self.cmd}") + os.execve(self.cmd[0], list(self.cmd), {**os.environ, **self.environment_vars}) except FileNotFoundError: error(f"{self.cmd[0]} does not exist.") self.exit_code = 1