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

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