anaconda: reset all services to default state

Some preset files may be installed when actual services are already
enabled/disabled. To not worry about package installation order, simply
reset all the services to default state when all the packages are
installed.

Fixes QubesOS/qubes-issues#2049
This commit is contained in:
Marek Marczykowski-Górecki 2016-06-06 02:28:47 +02:00
parent 6a8388e111
commit 72765538f7
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,9 @@
%post
# preset all services, to not worry about package installation order (preset
# files vs services)
systemctl preset-all
systemctl enable initial-setup.service
%end

View File

@ -18,5 +18,5 @@
# Author: Chris Lumens <clumens@redhat.com>
postscriptsdir = $(datadir)/$(PACKAGE_NAME)/post-scripts
dist_postscripts_DATA = 40-qubes-alt-kernels.ks 50-qubes.ks 80-setfilecons.ks 90-copy-screenshots.ks 99-copy-logs.ks
dist_postscripts_DATA = 40-qubes-alt-kernels.ks 50-qubes.ks 60-systemd-preset.ks 80-setfilecons.ks 90-copy-screenshots.ks 99-copy-logs.ks
MAINTAINERCLEANFILES = Makefile.in