renamed driver.py to gfx_driver.py. also explictly check if we are using the propritery nvidia drivers
This commit is contained in:
parent
349c3ec5b4
commit
b85514ae5e
|
|
@ -16,7 +16,7 @@ def _prep_function(*args, **kwargs):
|
|||
if hasattr(imported, '_prep_function'):
|
||||
return imported._prep_function()
|
||||
else:
|
||||
print('Deprecated (??): xorg profile has no _prep_function() anymore')
|
||||
print('Deprecated (??): wayland profile has no _prep_function() anymore')
|
||||
|
||||
def _post_install(*args, **kwargs):
|
||||
choice = input("Would you like to autostart sway on login [Y/n]: ")
|
||||
|
|
@ -37,8 +37,8 @@ def _post_install(*args, **kwargs):
|
|||
# or through conventional import kde
|
||||
if __name__ == 'sway':
|
||||
# Install dependency profiles
|
||||
if "nvidia" in _gfx_driver_packages:
|
||||
raise archinstall.lib.exceptions.HardwareIncompatibilityError("sway does not support nvidia cards")
|
||||
if _gfx_driver_packages == 'nvidia':
|
||||
raise archinstall.lib.exceptions.HardwareIncompatibilityError("sway does not the prorpitery nvidia driver try using nouveau")
|
||||
else:
|
||||
installation.install_profile('wayland')
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ def _prep_function(*args, **kwargs):
|
|||
print('You need to select which graphics card you\'re using.')
|
||||
print('This in order to setup the required graphics drivers.')
|
||||
|
||||
__builtins__['_gfx_driver_packages'] = archinstall.lib.drivers.select_driver(AVAILABLE_DRIVERS)
|
||||
__builtins__['_gfx_driver_packages'] = archinstall.lib.gfx_drivers.select_driver(AVAILABLE_DRIVERS)
|
||||
|
||||
# TODO: Add language section and/or merge it with the locale selected
|
||||
# earlier in for instance guided.py installer.
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ def _prep_function(*args, **kwargs):
|
|||
print('You need to select which graphics card you\'re using.')
|
||||
print('This in order to setup the required graphics drivers.')
|
||||
|
||||
__builtins__['_gfx_driver_packages'] = archinstall.lib.drivers.select_driver(AVAILABLE_DRIVERS)
|
||||
__builtins__['_gfx_driver_packages'] = archinstall.lib.gfx_drivers.select_driver(AVAILABLE_DRIVERS)
|
||||
|
||||
# TODO: Add language section and/or merge it with the locale selected
|
||||
# earlier in for instance guided.py installer.
|
||||
|
|
|
|||
Loading…
Reference in New Issue