[services] PEP8 modification
This commit is contained in:
parent
e761ae9008
commit
66c36446fa
@ -100,23 +100,27 @@ def run():
|
|||||||
"systemctl disable call in chroot returned error code "
|
"systemctl disable call in chroot returned error code "
|
||||||
"{}".format(ec)
|
"{}".format(ec)
|
||||||
)
|
)
|
||||||
|
|
||||||
if libcalamares.globalstorage.contains("displayManagers"):
|
if libcalamares.globalstorage.contains("displayManagers"):
|
||||||
for dm in libcalamares.globalstorage.value("displayManagers"):
|
for dm in libcalamares.globalstorage.value("displayManagers"):
|
||||||
if not exists(join(rootmnt, "etc/systemd/system/display-manager.service")):
|
if not exists(join(
|
||||||
|
rootmnt, "etc/systemd/system/display-manager.service"
|
||||||
|
)):
|
||||||
ec = libcalamares.utils.target_env_call(
|
ec = libcalamares.utils.target_env_call(
|
||||||
['systemctl', 'enable', '{}.service'.format(dm)]
|
['systemctl', 'enable', '{}.service'.format(dm)]
|
||||||
)
|
)
|
||||||
|
|
||||||
if ec != 0:
|
if ec != 0:
|
||||||
return "Cannot enable systemd service {}".format(dm), \
|
return "Cannot enable systemd service {}".format(dm), \
|
||||||
"systemctl enable call in chroot returned error code {}".format(ec)
|
"systemctl enable call in chroot returned error code"
|
||||||
|
"{}".format(ec)
|
||||||
else:
|
else:
|
||||||
libcalamares.utils.debug(
|
libcalamares.utils.debug(
|
||||||
"Cannot enable systemd service {}".format(dm)
|
"Cannot enable systemd service {}".format(dm)
|
||||||
)
|
)
|
||||||
libcalamares.utils.debug(
|
libcalamares.utils.debug(
|
||||||
"systemctl enable call in chroot returned error code {}".format(ec)
|
"systemctl enable call in chroot returned error code"
|
||||||
|
"{}".format(ec)
|
||||||
)
|
)
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user