anaconda: enable only initial-setup.service variant

It should take care of choosing the right one.

QubesOS/qubes-issues#1807
This commit is contained in:
Marek Marczykowski-Górecki 2016-04-24 23:40:32 +02:00
parent 6ce8b815d7
commit d576319578
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -708,8 +708,7 @@ class Firstboot(commands.firstboot.FC3_Firstboot):
def execute(self, *args):
action = "enable"
services = ["initial-setup-graphical.service",
"initial-setup-text.service"]
services = ["initial-setup.service"]
# find if the unit files for the Initial Setup services are installed
services = [name for name in services if os.path.exists(os.path.join(iutil.getSysroot(), "lib/systemd/system/", name))]