From 5d6935f9f2105aa456259a82eacb58fbafefe60a Mon Sep 17 00:00:00 2001 From: Dylan Taylor Date: Thu, 20 May 2021 15:32:15 -0400 Subject: Add logging of execution output --- examples/guided.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/guided.py b/examples/guided.py index 1b7abab1..34aacf67 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -383,7 +383,8 @@ def perform_installation(mountpoint): archinstall.log(f'Executing custom command "{command}" ...', fg='yellow') with open(f"/mnt/var/tmp/user-command.{index}.sh", "w") as temp_script: temp_script.write(command) - SysCommand(f"arch-chroot /mnt bash /var/tmp/user-command.{index}.sh") + execution_output = SysCommand(f"arch-chroot /mnt bash /var/tmp/user-command.{index}.sh") + archinstall.log(execution_output) installation.log("For post-installation tips, see https://wiki.archlinux.org/index.php/Installation_guide#Post-installation", fg="yellow") if not archinstall.arguments.get('silent'): -- cgit v1.2.3-54-g00ecf