Blame SOURCES/hpvd-hypervkvpd.service-ordering-fixes.patch

269d31
From 33725de60efa5e867ed73d2404d316785d0e4bb5 Mon Sep 17 00:00:00 2001
269d31
From: Mohammed Gamal <mgamal@redhat.com>
269d31
Date: Wed, 20 Jul 2022 11:48:40 +0200
269d31
Subject: [PATCH 1/2] hypervkvpd.service: ordering fixes
269d31
269d31
RH-Author: Mohamed Gamal Morsy <mmorsy@redhat.com>
269d31
RH-MergeRequest: 3: hypervkvpd.service: ordering fixes
269d31
RH-Commit: [1/2] f5bec088f7cf4afd641a2d7184a4e29cd1734bf4
269d31
RH-Bugzilla: 2115761
269d31
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
269d31
RH-Acked-by: Cathy Avery <cavery@redhat.com>
269d31
269d31
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2115761
269d31
269d31
	From 8dcff588c8eb1ab3119c6b0acead03189814b955 Mon Sep 17 00:00:00 2001
269d31
	From: Chris Patterson <cpatterson@microsoft.com>
269d31
	Date: Jul 01 2022 14:36:25 +0000
269d31
	Subject: hypervkvpd.service: ordering fixes
269d31
269d31
	- Only start kvpd under Hyper-V.
269d31
269d31
	- Minimize dependencies for kvpd by removing the unnecessary
269d31
	network.target requirement, but add kvp device and mount
269d31
	requirements.
269d31
269d31
	Start before cloud-init-local.service which relies on kvpd
269d31
	for Azure.
269d31
269d31
	Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
269d31
269d31
Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
269d31
---
269d31
 hypervkvpd.service | 5 ++++-
269d31
 1 file changed, 4 insertions(+), 1 deletion(-)
269d31
269d31
diff --git a/hypervkvpd.service b/hypervkvpd.service
269d31
index 36ee11c..40dff13 100644
269d31
--- a/hypervkvpd.service
269d31
+++ b/hypervkvpd.service
269d31
@@ -1,7 +1,10 @@
269d31
 [Unit]
269d31
 Description=Hyper-V KVP daemon
269d31
+ConditionVirtualization=microsoft
269d31
 BindsTo=sys-devices-virtual-misc-vmbus\x21hv_kvp.device
269d31
-After=network.target
269d31
+After=sys-devices-virtual-misc-vmbus\x21hv_kvp.device
269d31
+RequiresMountsFor=/var/lib/hyperv
269d31
+Before=cloud-init-local.service
269d31
 IgnoreOnIsolate=1
269d31
 
269d31
 [Service]
269d31
-- 
269d31
2.31.1
269d31