Commissioning logs: https://pastebin.canonical.com/203632/
The previous patch gave an error when only upstart was running, this should cover that case too (thanks ivanhitos):
def get_init_system(): """Returns 'upstart' or 'systemd'.""" if os.path.islink("/sbin/init"): initpath = os.readlink("/sbin/init") if initpath == "/lib/systemd/systemd": return 'systemd' else: return 'upstart' else: return 'upstart'
Commissioning logs: https:/ /pastebin. canonical. com/203632/
The previous patch gave an error when only upstart was running, this should cover that case too (thanks ivanhitos):
def get_init_system(): islink( "/sbin/ init"): "/sbin/ init") systemd" :
"""Returns 'upstart' or 'systemd'."""
if os.path.
initpath = os.readlink(
if initpath == "/lib/systemd/
return 'systemd'
else:
return 'upstart'
else:
return 'upstart'