Blame SOURCES/hpvd-redhat-Add-ConditionalVirtualization-to-the-rest-of-.patch

269d31
From 3eb64f25afdf65d9999d155d8c89327cf9d27036 Mon Sep 17 00:00:00 2001
269d31
From: Mohammed Gamal <mgamal@redhat.com>
269d31
Date: Mon, 15 Aug 2022 17:38:37 +0200
269d31
Subject: [PATCH 2/2] redhat: Add ConditionalVirtualization to the rest of
269d31
 systemd units
269d31
269d31
RH-Author: Mohamed Gamal Morsy <mmorsy@redhat.com>
269d31
RH-MergeRequest: 3: hypervkvpd.service: ordering fixes
269d31
RH-Commit: [2/2] 6638ac3cfcff63e664d6ba86772a4bdfe45d2084
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
Add ConditionalVirtualization to the rest of systemd units to make sure
269d31
they're started when running in Azure/Hyper-V.
269d31
269d31
Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
269d31
---
269d31
 hypervfcopyd.service | 1 +
269d31
 hypervvssd.service   | 1 +
269d31
 2 files changed, 2 insertions(+)
269d31
269d31
diff --git a/hypervfcopyd.service b/hypervfcopyd.service
269d31
index dd14a97..aab4b6b 100644
269d31
--- a/hypervfcopyd.service
269d31
+++ b/hypervfcopyd.service
269d31
@@ -1,5 +1,6 @@
269d31
 [Unit]
269d31
 Description=Hyper-V FCOPY daemon
269d31
+ConditionVirtualization=microsoft
269d31
 BindsTo=sys-devices-virtual-misc-vmbus\x21hv_fcopy.device
269d31
 IgnoreOnIsolate=1
269d31
 
269d31
diff --git a/hypervvssd.service b/hypervvssd.service
269d31
index 1e5ff43..6a0fad0 100644
269d31
--- a/hypervvssd.service
269d31
+++ b/hypervvssd.service
269d31
@@ -1,5 +1,6 @@
269d31
 [Unit]
269d31
 Description=Hyper-V VSS daemon
269d31
+ConditionVirtualization=microsoft
269d31
 BindsTo=sys-devices-virtual-misc-vmbus\x21hv_vss.device
269d31
 IgnoreOnIsolate=1
269d31
 
269d31
-- 
269d31
2.31.1
269d31