Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-11 07:58:29 +0000
committerGitHub <noreply@github.com>2021-04-11 07:58:29 +0000
commit0d14b4b9dc99e519818de091533ca9fb2f2d223c (patch)
tree76e88548c260ba603dcf2eb05e2e659fc12c7c07 /archinstall
parent3d659dead8cf06e71ad9c36db1abec3f22335414 (diff)
parent09f252d0315469ad699066279e04c4e3424ea967 (diff)
Merge pull request #273 from dylanmtaylor/patch-2
Restructure Graphics Driver Selection for 2.2.0
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/gfx_drivers.py21
-rw-r--r--archinstall/lib/installer.py2
2 files changed, 22 insertions, 1 deletions
diff --git a/archinstall/lib/gfx_drivers.py b/archinstall/lib/gfx_drivers.py
index 7abb9db0..e1fb2824 100644
--- a/archinstall/lib/gfx_drivers.py
+++ b/archinstall/lib/gfx_drivers.py
@@ -1,5 +1,24 @@
import archinstall
-def select_driver(options):
+
+AVAILABLE_DRIVERS = {
+ # Sub-dicts are layer-2 options to be selected
+ # and lists are a list of packages to be installed
+ 'AMD / ATI' : {
+ 'amd' : ['xf86-video-amdgpu'],
+ 'ati' : ['xf86-video-ati']
+ },
+ 'intel' : ['xf86-video-intel'],
+ 'nvidia' : {
+ 'open source' : ['xf86-video-nouveau'],
+ 'proprietary' : ['nvidia']
+ },
+ 'mesa' : ['mesa'],
+ 'fbdev' : ['xf86-video-fbdev'],
+ 'vesa' : ['xf86-video-vesa'],
+ 'vmware' : ['xf86-video-vmware']
+}
+
+def select_driver(options=AVAILABLE_DRIVERS):
"""
Some what convoluted function, which's job is simple.
Select a graphics driver from a pre-defined set of popular options.
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index e9343cd1..5523b1e1 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -10,6 +10,8 @@ from .systemd import Networkd
from .output import log, LOG_LEVELS
from .storage import storage
from .hardware import *
+from .gfx_drivers import *
+
# Any package that the Installer() is responsible for (optional and the default ones)
__packages__ = ["base", "base-devel", "linux", "linux-firmware", "efibootmgr", "nano", "ntp", "iwd"]
__base_packages__ = __packages__[:6]