From 4e5f811d759bca474df42335bf803639a6b7c06d Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 20 Jun 2019 18:39:45 +0000 Subject: Enhancing booted mode command calls --- archinstall.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'archinstall.py') diff --git a/archinstall.py b/archinstall.py index bd90f9b7..0a85c04c 100644 --- a/archinstall.py +++ b/archinstall.py @@ -189,6 +189,23 @@ class sys_command(): break yield output + print('[N] Waiting for output to settle (5 sec)') + last = time() + while time()-last < 5: + for fileno, event in poller.poll(0.1): + try: + output = os.read(child_fd, 8192).strip() + trace_log += output + except OSError: + last = time() - 60 + break + + if 'debug' in self.opts and self.opts['debug']: + if len(output): + print(output) + + last = time() + if 'debug' in self.opts and self.opts['debug']: print('[N] Exited subsystem, instructing it to shutdown.') # Since we're in a subsystem, we gotta bail out! -- cgit v1.2.3-70-g09d2