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:
parent
6a8388e111
commit
72765538f7
9
anaconda/data/post-scripts/60-systemd-preset.ks
Normal file
9
anaconda/data/post-scripts/60-systemd-preset.ks
Normal 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
|
@ -18,5 +18,5 @@
|
|||||||
# Author: Chris Lumens <clumens@redhat.com>
|
# Author: Chris Lumens <clumens@redhat.com>
|
||||||
|
|
||||||
postscriptsdir = $(datadir)/$(PACKAGE_NAME)/post-scripts
|
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
|
MAINTAINERCLEANFILES = Makefile.in
|
||||||
|
Loading…
Reference in New Issue
Block a user