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-04-11 22:56:24 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-04-11 22:56:24 +0200
commit9e8179d25b8404f30b884a2760d3410325719c63 (patch)
treeacd563126e93923d47905ceadc5ccaeb166b6588 /archinstall.py
parent5c3089e7f904bfd05d1add9189bff5847ca2c7b5 (diff)
Live testing
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/archinstall.py b/archinstall.py
index 43ebd669..e8997391 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -172,15 +172,18 @@ class sys_command():
print('[N] Writing to subsystem: {}'.format(self.opts['triggers'][trigger]))
os.write(child_fd, self.opts['triggers'][trigger])
del(self.opts['triggers'][trigger])
+
+ ## Adding a exit trigger:
if len(self.opts['triggers']) == 0:
- alive = False
- break
+ if b'[root@arcinstall ~]#' in output:
+ alive = False
+ break
yield output
# Since we're in a subsystem, we gotta bail out!
# Bail bail bail!
- os.write(child_fd, b'shutdown now')
+ os.write(child_fd, b'shutdown now\n')
exit_code = os.waitpid(self.pid, 0)[1]
if exit_code != 0: