From de4efc0011bccc7c1051c4236f02f5ff99a34ba5 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sat, 12 Feb 2022 18:20:28 +0100 Subject: [PATCH] Added debug information --- archinstall/lib/general.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index e53096ff..c077297a 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -298,6 +298,7 @@ class SysCommandWorker: def make_sure_we_are_executing(self) -> bool: if not self.started: return self.execute() + return True def tell(self) -> int: @@ -329,15 +330,15 @@ class SysCommandWorker: self.make_sure_we_are_executing() if self.is_parent(): - got_output = False for fileno, event in self.poll_object.poll(0.1): try: - output = os.read(self.child_fd, 8192) - got_output = True + output = os.read(fileno, 8192) + print('Output:', output) self.peak(output) self._trace_log += output - except OSError: + except OSError as error: self.ended = time.time() + print(f'Got [OSError]: {error}') break if pid_exists(self.pid) is False: