hypervkvpd.service: ordering fixes

- Only start kvpd under Hyper-V.

- Minimize dependencies for kvpd by removing the unnecessary
  network.target requirement, but add kvp device and mount
  requirements.

- Start before cloud-init-local.service which relies on kvpd
  for Azure.

Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
This commit is contained in:
Chris Patterson 2022-07-01 14:36:25 +00:00 committed by Vitaly Kuznetsov
parent f4c66aab85
commit af383a2648
2 changed files with 8 additions and 2 deletions

View File

@ -13,7 +13,7 @@
Name: hyperv-daemons
Version: 0
Release: 0.36%{?snapver}%{?dist}
Release: 0.37%{?snapver}%{?dist}
Summary: Hyper-V daemons suite
License: GPLv2
@ -246,6 +246,10 @@ fi
%{_sbindir}/lsvmbus
%changelog
* Fri Jul 01 2022 Chris Patterson <cpatterson@microsoft.com> - 0-0.37.20190303git
- Only start kvpd under Hyper-V
- Minimize dependencies for kvpd to ensure it starts before cloud-init
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.36.20190303git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

View File

@ -2,7 +2,9 @@
Description=Hyper-V KVP daemon
ConditionVirtualization=microsoft
BindsTo=sys-devices-virtual-misc-vmbus\x21hv_kvp.device
After=network.target
After=sys-devices-virtual-misc-vmbus\x21hv_kvp.device
RequiresMountsFor=/var/lib/hyperv
Before=cloud-init-local.service
IgnoreOnIsolate=1
[Service]