Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-06-20 18:39:45 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2019-06-20 18:39:45 +0000
commit4e5f811d759bca474df42335bf803639a6b7c06d (patch)
treeefce2c5fe3306116f4be3c2afb10809cc5a73010 /archinstall.py
parent809d6bf316572ce3b84ad9de1c6327fe574743c2 (diff)
Enhancing booted mode command calls
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py17
1 files changed, 17 insertions, 0 deletions
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!