Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archinstall.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index 9a5781f5..0840581b 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -177,10 +177,12 @@ class sys_command():
if 'triggers' in self.opts:
for trigger in list(self.opts['triggers']):
if trigger.lower() in trace_log[last_trigger_pos:].lower():
+ trigger_pos_in_log = trace_log[last_trigger_pos:].lower().find(trigger.lower()) + len(trigger)
+
if 'debug' in self.opts and self.opts['debug']:
print('[N] Writing to subsystem: {}'.format(self.opts['triggers'][trigger].decode('UTF-8')))
- last_trigger_pos = len(trace_log)
+ last_trigger_pos = trigger_pos_in_log #len(trace_log)
os.write(child_fd, self.opts['triggers'][trigger])
del(self.opts['triggers'][trigger])
broke = True