Add --needed to pacstrap to prevent re-installs
This commit is contained in:
parent
803ff4236e
commit
6bdb756650
|
|
@ -554,7 +554,7 @@ class Installer:
|
|||
info(f'Updating {fstab_path}')
|
||||
|
||||
try:
|
||||
gen_fstab = SysCommand(f'genfstab {flags} {self.target}').output()
|
||||
gen_fstab = SysCommand(f'genfstab {flags} -f {self.target} {self.target}').output()
|
||||
except SysCallError as err:
|
||||
raise RequirementError(f'Could not generate fstab, strapping in packages most likely failed (disk out of space?)\n Error: {err}')
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ class Pacman:
|
|||
'Could not strap in packages',
|
||||
'Pacstrap failed. See /var/log/archinstall/install.log or above message for error details',
|
||||
SysCommand,
|
||||
f'pacstrap -C /etc/pacman.conf -K {self.target} {" ".join(packages)} --noconfirm',
|
||||
f'pacstrap -C /etc/pacman.conf -K {self.target} {" ".join(packages)} --noconfirm --needed',
|
||||
peek_output=True,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue