services: enable displaymanager via globalstorage
This commit is contained in:
parent
18f4b6e50c
commit
9fe9320555
@ -67,5 +67,16 @@ def run():
|
||||
else:
|
||||
libcalamares.utils.debug("Cannot disable systemd service {}".format(dbl['name']))
|
||||
libcalamares.utils.debug("systemctl disable call in chroot returned error code {}".format(ec))
|
||||
|
||||
if libcalamares.globalstorage.contains("displayManagers"):
|
||||
for dm in libcalamares.globalstorage.value("displayManagers"):
|
||||
ec = libcalamares.utils.target_env_call(['systemctl', 'enable', '{}.service'.format(dm)])
|
||||
|
||||
if ec != 0:
|
||||
return "Cannot enable systemd service {}".format(dm), \
|
||||
"systemctl enable call in chroot returned error code {}".format(ec)
|
||||
else:
|
||||
libcalamares.utils.debug("Cannot enable systemd service {}".format(dm))
|
||||
libcalamares.utils.debug("systemctl enable call in chroot returned error code {}".format(ec))
|
||||
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user