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 19:01:34 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2019-06-20 19:01:34 +0000
commitd338b5f51e2fbfd50a519ce44dee6e6b466d1d54 (patch)
tree709ef4fd37e251d2d9c88f890994d2ea9329a7d6 /archinstall.py
parent6a0e906ac7e1c831b083d4983d819e613d45392a (diff)
Fixing some logic issues in sys_command
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/archinstall.py b/archinstall.py
index 22993f7f..ab9faada 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -220,6 +220,22 @@ class sys_command():
# Since we're in a subsystem, we gotta bail out!
# Bail bail bail!
os.write(child_fd, b'shutdown now\n')
+ print('[N] Shutdown initated')
+ 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] Waiting for exit code.')