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:
parent
bc38235293
commit
d460acf065
@ -582,10 +582,11 @@ class Firstboot(commands.firstboot.FC3_Firstboot):
|
|||||||
f = open(ROOT_PATH + "/etc/reconfigSys", "w+")
|
f = open(ROOT_PATH + "/etc/reconfigSys", "w+")
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
iutil.execWithRedirect("systemctl", [action, "firstboot-graphical.service",
|
for unit in [
|
||||||
|
"firstboot-graphical.service",
|
||||||
"initial-setup-graphical.service",
|
"initial-setup-graphical.service",
|
||||||
"initial-setup-text.service"],
|
"initial-setup-text.service"]:
|
||||||
root=ROOT_PATH)
|
iutil.execWithRedirect("systemctl", [action, unit], root=ROOT_PATH)
|
||||||
|
|
||||||
class Group(commands.group.F12_Group):
|
class Group(commands.group.F12_Group):
|
||||||
def execute(self, storage, ksdata, instClass, users):
|
def execute(self, storage, ksdata, instClass, users):
|
||||||
|
Loading…
Reference in New Issue
Block a user