From 7b1968fa9a27eedb195e0d3e9d416413dafe71bb Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 29 Nov 2019 16:12:10 +0100 Subject: Adding more debug output --- archinstall.py | 4 ++++ deployments/default.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/archinstall.py b/archinstall.py index 2794b1a8..feb73093 100644 --- a/archinstall.py +++ b/archinstall.py @@ -294,6 +294,10 @@ class sys_command():#Thread): poller = epoll() poller.register(child_fd, EPOLLIN | EPOLLHUP) + if 'events' in self.kwargs and 'debug' in self.kwargs: + print(f'[D] Using triggers for command: {self.cmd}') + print(json.dumps(self.kwargs['events'])) + alive = True last_trigger_pos = 0 while alive and not self.kwargs['emulate']: diff --git a/deployments/default.json b/deployments/default.json index 4aa0489d..78fd346e 100644 --- a/deployments/default.json +++ b/deployments/default.json @@ -11,7 +11,8 @@ "continue connecting" : "yes", "s password" : "test" }, - "boot" : true + "boot" : true, + "debug" : true } } } -- cgit v1.2.3-54-g00ecf