Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles/xorg.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-05-24 20:37:41 +0200
committerGitHub <noreply@github.com>2021-05-24 20:37:41 +0200
commita8e0d3a130bc7afbf9bee022665f9301707249a2 (patch)
tree126d1f71e3811fa47b5e95be6c925e9029115354 /profiles/xorg.py
parent324413cd47c459b0be7f06c6ebe49409ad9693a2 (diff)
parent2aed8c6ad5a8ab31accb6d618bca4798591cf415 (diff)
Merge pull request #513 from l4zy0n3/remove-builtins
Removed builtins and added gfx_package key in config file
Diffstat (limited to 'profiles/xorg.py')
-rw-r--r--profiles/xorg.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/profiles/xorg.py b/profiles/xorg.py
index b8fb2cbb..9006a430 100644
--- a/profiles/xorg.py
+++ b/profiles/xorg.py
@@ -22,7 +22,7 @@ def _prep_function(*args, **kwargs):
for more input before any other installer steps start.
"""
- __builtins__['_gfx_driver_packages'] = archinstall.select_driver()
+ archinstall.storage["gfx_driver_packages"] = archinstall.select_driver()
# TODO: Add language section and/or merge it with the locale selected
# earlier in for instance guided.py installer.
@@ -35,13 +35,13 @@ def _prep_function(*args, **kwargs):
# or through conventional import xorg
if __name__ == 'xorg':
try:
- if "nvidia" in _gfx_driver_packages:
+ if "nvidia" in archinstall.storage.get("gfx_driver_packages", None):
if "linux-zen" in archinstall.storage['installation_session'].base_packages or "linux-lts" in archinstall.storage['installation_session'].base_packages:
archinstall.storage['installation_session'].add_additional_packages("dkms") # I've had kernel regen fail if it wasn't installed before nvidia-dkms
archinstall.storage['installation_session'].add_additional_packages("xorg-server xorg-xinit nvidia-dkms")
else:
- archinstall.storage['installation_session'].add_additional_packages(f"xorg-server xorg-xinit {' '.join(_gfx_driver_packages)}")
+ archinstall.storage['installation_session'].add_additional_packages(f"xorg-server xorg-xinit {' '.join(archinstall.storage.get('gfx_driver_packages', None))}")
else:
- archinstall.storage['installation_session'].add_additional_packages(f"xorg-server xorg-xinit {' '.join(_gfx_driver_packages)}")
+ archinstall.storage['installation_session'].add_additional_packages(f"xorg-server xorg-xinit {' '.join(archinstall.storage.get('gfx_driver_packages', None))}")
except:
archinstall.storage['installation_session'].add_additional_packages("xorg-server xorg-xinit") # Prep didn't run, so there's no driver to install