Run custom commands within bash session

This commit is contained in:
Dylan M. Taylor 2021-05-19 20:52:33 -04:00 committed by Dylan Taylor
parent 592c173767
commit c03da01412
1 changed files with 1 additions and 1 deletions

View File

@ -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")