rpm/systemd: do not use preset-all during package upgrade

This will probably break some user configuration. Do that only when
installing for the first time (during template build), during upgrade
set only those installed by this package instead of all.
This commit is contained in:
Marek Marczykowski-Górecki 2015-04-10 18:08:28 +02:00
parent 731ee3e09a
commit 5fef29e1a4

View File

@ -584,7 +584,13 @@ The Qubes core startup configuration for SystemD init.
%post systemd
/bin/systemctl --no-reload preset-all
if [ $1 -eq 1 ]; then
/bin/systemctl --no-reload preset-all
else
for srv in qubes-dvm qubes-sysinit qubes-misc-post qubes-mount-home qubes-netwatcher qubes-network qubes-qrexec-agent; do
/bin/systemctl --no-reload preset $srv
done
fi
# Set default "runlevel"
rm -f /etc/systemd/system/default.target