anaconda: do not fail on nonexistent inital-setup-*

Split `systemctl enable` to fail only on nonexistent units. Qubes does not
currently use initial-setup.
This commit is contained in:
Wojciech Zygmunt Porczyk 2014-11-10 14:48:31 +01:00
parent bc38235293
commit d460acf065

View File

@ -582,10 +582,11 @@ class Firstboot(commands.firstboot.FC3_Firstboot):
f = open(ROOT_PATH + "/etc/reconfigSys", "w+")
f.close()
iutil.execWithRedirect("systemctl", [action, "firstboot-graphical.service",
"initial-setup-graphical.service",
"initial-setup-text.service"],
root=ROOT_PATH)
for unit in [
"firstboot-graphical.service",
"initial-setup-graphical.service",
"initial-setup-text.service"]:
iutil.execWithRedirect("systemctl", [action, unit], root=ROOT_PATH)
class Group(commands.group.F12_Group):
def execute(self, storage, ksdata, instClass, users):