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 23:01:22 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-04-11 23:01:22 +0200
commit17de7d0ce4020050d1d74552cfb6cacfda23b5e2 (patch)
treed466b7f3240754110e343ee135159d1ef87cc38a /archinstall.py
parent9e8179d25b8404f30b884a2760d3410325719c63 (diff)
Added a exit condition for the subsystem
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index e8997391..96283004 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -169,13 +169,18 @@ class sys_command():
if 'triggers' in self.opts:
for trigger in list(self.opts['triggers']):
if trigger.lower() in lower:
- print('[N] Writing to subsystem: {}'.format(self.opts['triggers'][trigger]))
+ if 'debug' in self.opts and self.opts['debug']:
+ 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:
+ if 'debug' in self.opts and self.opts['debug']:
+ print('[N] Waiting for last command to finish...')
if b'[root@arcinstall ~]#' in output:
+ if 'debug' in self.opts and self.opts['debug']:
+ print('[N] Last command finished, exiting subsystem.')
alive = False
break