Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-20 15:32:15 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-20 15:32:15 -0400
commit5d6935f9f2105aa456259a82eacb58fbafefe60a (patch)
tree1b4413522e0de763adc001b030d502a81a87c628
parent7811e01a9049d1c799bb9589807dd2cf3810eda8 (diff)
Add logging of execution output
-rw-r--r--examples/guided.py3
1 files changed, 2 insertions, 1 deletions
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'):