[displaymanager] Treat openSUSE sysconfig like anything else

This commit is contained in:
Adriaan de Groot 2019-10-07 17:04:10 +02:00
parent d592a5bb94
commit b00335f5b3

View File

@ -850,6 +850,13 @@ class DMsysconfig(DisplayManager):
def greeter_setup(self): def greeter_setup(self):
pass pass
# For openSUSE-derivatives, there is only sysconfig to configure,
# and no special DM configuration for it. Instead, check that
# sysconfig is available in the target.
def have_dm(self):
config = "{!s}/etc/sysconfig/displaymanager".format(self.root_mount_point)
return os.path.exists(config)
# Collect all the subclasses of DisplayManager defined above, # Collect all the subclasses of DisplayManager defined above,
# and index them based on the name property of each class. # and index them based on the name property of each class.