From 943ce56974dd4306b6b9d35b4cfbf118323b4835 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 20 Jun 2019 15:25:29 +0000 Subject: Some times systemd-boot splits output, so we gotta check trigger in the trace_log instead. Slightly more taxing, but it yields better (accurate) results. --- archinstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall.py') diff --git a/archinstall.py b/archinstall.py index 8756d9f1..5221e337 100644 --- a/archinstall.py +++ b/archinstall.py @@ -172,7 +172,7 @@ class sys_command(): lower = output.lower() if 'triggers' in self.opts: for trigger in list(self.opts['triggers']): - if trigger.lower() in lower: + if trigger.lower() in trace_log.lower(): 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]) -- cgit v1.2.3-70-g09d2