Moved --noconfirm at the end of the pacstrap command to get piped properly to pacman inside pacstrap.

This commit is contained in:
Anton Hvornum 2021-09-14 11:47:16 +00:00
parent e0f00ad1fe
commit 6d2a2f327c
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class Installer:
self.log(f'Installing packages: {packages}', level=logging.INFO)
if (sync_mirrors := SysCommand('/usr/bin/pacman -Syy')).exit_code == 0:
if (pacstrap := SysCommand(f'/usr/bin/pacstrap --noconfirm {self.target} {" ".join(packages)}', peak_output=True)).exit_code == 0:
if (pacstrap := SysCommand(f'/usr/bin/pacstrap {self.target} {" ".join(packages)} --noconfirm', peak_output=True)).exit_code == 0:
return True
else:
self.log(f'Could not strap in packages: {pacstrap}', level=logging.ERROR, fg="red")