From c03da01412ace204d86a57aa817b43159a699b80 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Wed, 19 May 2021 20:52:33 -0400 Subject: Run custom commands within bash session --- examples/guided.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/guided.py') diff --git a/examples/guided.py b/examples/guided.py index 7ded5c53..65f4c9d9 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -386,7 +386,7 @@ def perform_installation(mountpoint): if len(archinstall.arguments['custom-commands']): for command in archinstall.arguments['custom-commands']: archinstall.log(f'Executing custom command "{command}" ...', fg='yellow') - SysCommand(f"arch-chroot /mnt {command}") + SysCommand(f"arch-chroot /mnt bash -c '{command}'") installation.log("For post-installation tips, see https://wiki.archlinux.org/index.php/Installation_guide#Post-installation", fg="yellow") -- cgit v1.2.3-70-g09d2