Fix microcode not getting added to base_packages before install

This commit is contained in:
Dylan M. Taylor 2021-05-14 22:29:29 -04:00 committed by Dylan Taylor
parent 9467a7cd77
commit a0a695b9e5
1 changed files with 6 additions and 5 deletions

View File

@ -320,12 +320,9 @@ class Installer():
if 'encrypt' not in self.HOOKS:
self.HOOKS.insert(self.HOOKS.index('filesystems'), 'encrypt')
if not(hasUEFI()): # TODO: Allow for grub even on EFI
if not(hasUEFI()):
self.base_packages.append('grub')
self.pacstrap(self.base_packages)
self.helper_flags['base-strapped'] = True
#self.genfstab()
if not isVM():
vendor = cpuVendor()
if vendor == "AuthenticAMD":
@ -334,10 +331,14 @@ class Installer():
self.base_packages.append("intel-ucode")
else:
self.log("Unknown cpu vendor not installing ucode")
self.pacstrap(self.base_packages)
self.helper_flags['base-strapped'] = True
with open(f"{self.target}/etc/fstab", "a") as fstab:
fstab.write(
"\ntmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0\n"
) # Redundant \n at the start? who knows?
) # Redundant \n at the start? who knows?
## TODO: Support locale and timezone
#os.remove(f'{self.target}/etc/localtime')