diff --git a/hyperv-daemons.spec b/hyperv-daemons.spec index f8ac74a..99591f3 100644 --- a/hyperv-daemons.spec +++ b/hyperv-daemons.spec @@ -184,7 +184,10 @@ mkdir -p %{buildroot}%{_sharedstatedir}/hyperv %post -n hypervkvpd -%systemd_post hypervkvpd.service +if [ $1 > 1 ] ; then + # Upgrade + systemctl --no-reload disable hypervkvpd.service >/dev/null 2>&1 || : +fi %preun -n hypervkvpd %systemd_preun hypervkvpd.service @@ -199,7 +202,10 @@ fi %post -n hypervvssd -%systemd_post hypervvssd.service +if [ $1 > 1 ] ; then + # Upgrade + systemctl --no-reload disable hypervvssd.service >/dev/null 2>&1 || : +fi %postun -n hypervvssd %systemd_postun hypervvssd.service @@ -209,7 +215,10 @@ fi %post -n hypervfcopyd -%systemd_post hypervfcopyd.service +if [ $1 > 1 ] ; then + # Upgrade + systemctl --no-reload disable hypervfcopyd.service >/dev/null 2>&1 || : +fi %postun -n hypervfcopyd %systemd_postun hypervfcopyd.service @@ -245,6 +254,8 @@ fi %changelog * Thu Jul 28 2016 Vitaly Kuznetsov - 0-0.15.20160728git - Rebase to 4.8-rc0 (20160728 git snapshot) +- Disable services and remove ConditionVirtualization, multi-user.target + dependencies switching to udev-only activation (#1331577) * Thu Feb 04 2016 Fedora Release Engineering - 0-0.14.20150702git - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/hypervfcopyd.service b/hypervfcopyd.service index 50f857f..fa4a0a3 100644 --- a/hypervfcopyd.service +++ b/hypervfcopyd.service @@ -1,11 +1,6 @@ [Unit] Description=Hyper-V FCOPY daemon -ConditionVirtualization=microsoft BindsTo=sys-devices-virtual-misc-vmbus\x21hv_fcopy.device -After=sys-devices-virtual-misc-vmbus\x21hv_fcopy.device [Service] ExecStart=/usr/sbin/hypervfcopyd -n - -[Install] -WantedBy=multi-user.target diff --git a/hypervkvpd.service b/hypervkvpd.service index 9197f10..4ecfd62 100644 --- a/hypervkvpd.service +++ b/hypervkvpd.service @@ -1,12 +1,7 @@ [Unit] Description=Hyper-V KVP daemon -ConditionVirtualization=microsoft BindsTo=sys-devices-virtual-misc-vmbus\x21hv_kvp.device -After=sys-devices-virtual-misc-vmbus\x21hv_kvp.device [Service] Type=simple ExecStart=/usr/sbin/hypervkvpd -n - -[Install] -WantedBy=multi-user.target diff --git a/hypervvssd.service b/hypervvssd.service index 1b618f1..9751cb3 100644 --- a/hypervvssd.service +++ b/hypervvssd.service @@ -1,11 +1,6 @@ [Unit] Description=Hyper-V VSS daemon -ConditionVirtualization=microsoft BindsTo=sys-devices-virtual-misc-vmbus\x21hv_vss.device -After=sys-devices-virtual-misc-vmbus\x21hv_vss.device [Service] ExecStart=/usr/sbin/hypervvssd -n - -[Install] -WantedBy=multi-user.target