From f64a605449f59c677dff39962f1cb46616d893b7 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 29 Nov 2019 18:55:55 +0100 Subject: Debug output --- archinstall.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/archinstall.py b/archinstall.py index 64c1a164..bc5f999f 100644 --- a/archinstall.py +++ b/archinstall.py @@ -329,10 +329,11 @@ class sys_command():#Thread): trigger_pos = self.trace_log[last_trigger_pos:].lower().find(trigger.lower()) if 'debug' in self.kwargs and self.kwargs['debug']: - print(f"Writing to subprocess {self.cmd[0]}: {self.kwargs['events'][trigger].decode('UTF-8')}") - log(f"Writing to subprocess {self.cmd[0]}: {self.kwargs['events'][trigger].decode('UTF-8')}", origin='spawn', level=5) + print(f"Writing to subprocess {self.cmd[0]}: {self.kwargs['events'][trigger]}") + log(f"Writing to subprocess {self.cmd[0]}: {self.kwargs['events'][trigger]}", origin='spawn', level=5) last_trigger_pos = trigger_pos + # last_trigger_pos += len(self.kwargs['events'][trigger]) os.write(child_fd, self.kwargs['events'][trigger]) del(self.kwargs['events'][trigger]) broke = True @@ -1120,7 +1121,7 @@ def run_post_install_steps(*positionals, **kwargs): # fh.write('ExecStart=-/usr/bin/agetty --autologin root -s %I 115200,38400,9600 vt102\n') ## So we'll add a bunch of triggers instead and let the sys_command manually react to them. - ## " login" followed by "Passwodd" in case it's been set in a previous step.. usually this shouldn't be nessecary + ## " login" followed by "Password" in case it's been set in a previous step.. usually this shouldn't be nessecary ## since we set the password as the last step. And then the command itself which will be executed by looking for: ## [root@ ~]# defaults = { -- cgit v1.2.3-54-g00ecf