Add --needed to pacstrap to prevent re-installs

This commit is contained in:
HADEON 2025-11-16 11:30:47 +01:00 committed by GitHub
parent 803ff4236e
commit 6bdb756650
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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}')

View File

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