diff -Nur a/src/modules/liveservices/liveservices.conf b/src/modules/liveservices/liveservices.conf --- a/src/modules/liveservices/liveservices.conf 1970-01-01 01:00:00.000000000 +0100 +++ b/src/modules/liveservices/liveservices.conf 2015-07-26 14:31:44.353557382 +0100 @@ -0,0 +1,21 @@ +--- +#systemd kogaion live services are disabled in this precise order + +services: + - name: "x-setup" #name of the service file + mandatory: false #true=> if disabling fails the installer errors out and quits + #false=>if disabling fails print warning to console and continue + - name: "cdeject" + mandatory: false + + - name: "installer-text" + mandatory: false + + - name: "installer-gui" + mandatory: false + + - name: "graphical_start" + mandatory: false + + - name: "kogaionlive" + mandatory: false diff -Nur a/src/modules/liveservices/main.py b/src/modules/liveservices/main.py --- a/src/modules/liveservices/main.py 1970-01-01 01:00:00.000000000 +0100 +++ b/src/modules/liveservices/main.py 2015-07-26 14:24:57.722530083 +0100 @@ -0,0 +1,42 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# === This file is part of Calamares - === +# +# Copyright 2014, Philip Müller +# Copyright 2014, Teo Mrnjavac +# Copyright 2015, V3n3RiX +# +# Calamares is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Calamares is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Calamares. If not, see . + +import libcalamares + + +def run(): + """ Setup systemd services """ + services = libcalamares.job.configuration['services'] + + # disable kogaion live services + for svc in services: + ec = libcalamares.utils.chroot_call(['systemctl', 'disable', '{}.service'.format(svc['name'])]) + + if ec != 0: + if svc['mandatory']: + return "Cannot disable systemd service {}".format(svc['name']), \ + "systemctl disable call in chroot returned error code {}".format(ec) + else: + libcalamares.utils.debug("Cannot disable systemd service {}".format(svc['name'])) + libcalamares.utils.debug("systemctl disable call in chroot returned error code {}".format(ec)) + + return None diff -Nur a/src/modules/liveservices/module.desc b/src/modules/liveservices/module.desc --- a/src/modules/liveservices/module.desc 1970-01-01 01:00:00.000000000 +0100 +++ b/src/modules/liveservices/module.desc 2015-07-26 14:32:23.925560039 +0100 @@ -0,0 +1,6 @@ +--- +type: "job" +name: "liveservices" +interface: "python" +requires: [] +script: "main.py"