From 4f7656e36facc5dcbe8a3498e600b64a28624e01 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 26 Jun 2012 03:36:22 +0200 Subject: [PATCH] vm/spec: fix enabling NetworkManager SystemD service --- rpm_spec/core-vm.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index 85385134..3cb6a6b2 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -596,7 +596,9 @@ rm -f /etc/systemd/system/getty.target.wants/getty@tty*.service /bin/systemctl enable iptables.service 2> /dev/null /bin/systemctl enable rsyslog.service 2> /dev/null /bin/systemctl enable ntpd.service 2> /dev/null -/bin/systemctl enable NetworkManager.service +# Disable original service to enable overriden one +/bin/systemctl disable NetworkManager.service 2> /dev/null +/bin/systemctl enable NetworkManager.service 2> /dev/null # Enable cups only when it is real SystemD service [ -e /lib/systemd/system/cups.service ] && /bin/systemctl enable cups.service 2> /dev/null