index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-12-31 16:05:15 +0100 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-12-31 16:05:35 +0100 |
commit | ec4feade613990537b94e4b090317a1093c4683c (patch) | |
tree | 134901749eb0756c8b80e98ff6af0a1fcd67a47a | |
parent | 638a05243c7bab7db7449c24a2ab770e581244d0 (diff) |
-rw-r--r-- | profiles/xorg.py | 11 |
diff --git a/profiles/xorg.py b/profiles/xorg.py index 699d9fcd..aa8b5248 100644 --- a/profiles/xorg.py +++ b/profiles/xorg.py @@ -45,6 +45,17 @@ if __name__ == 'xorg': 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(archinstall.storage.get('gfx_driver_packages', []))}") + elif 'amdgpu' in archinstall.storage.get("gfx_driver_packages", []): + # The order of these two are important if amdgpu is installed #808 + if 'amdgpu' in archinstall.storage['installation_session'].MODULES: + archinstall.storage['installation_session'].MODULES.remove('amdgpu') + archinstall.storage['installation_session'].MODULES.append('amdgpu') + + if 'radeon' in archinstall.storage['installation_session'].MODULES: + archinstall.storage['installation_session'].MODULES.remove('radeon') + archinstall.storage['installation_session'].MODULES.append('radeon') + + archinstall.storage['installation_session'].add_additional_packages(f"xorg-server xorg-xinit {' '.join(archinstall.storage.get('gfx_driver_packages', []))}") else: archinstall.storage['installation_session'].add_additional_packages(f"xorg-server xorg-xinit {' '.join(archinstall.storage.get('gfx_driver_packages', []))}") except Exception as err: |