Blame SOURCES/hpvd-Set-IgnoreOnIsolate-1-in-systemd-units.patch

496374
From 2b218c6e29ff031862c0976deb9810dfb2d79ab2 Mon Sep 17 00:00:00 2001
496374
From: Vitaly Kuznetsov <vkuznets@redhat.com>
496374
Date: Thu, 14 Nov 2019 12:21:46 +0100
496374
Subject: [PATCH] Set IgnoreOnIsolate=1 in systemd units
496374
496374
RH-Author: Vitaly Kuznetsov <vkuznets@redhat.com>
496374
Message-id: <20191114122146.17009-1-vkuznets@redhat.com>
496374
Patchwork-id: 92251
496374
O-Subject: [RHEL8.2 hyperv-daemons PATCH] Set IgnoreOnIsolate=1 in systemd units
496374
Bugzilla: 1769920
496374
RH-Acked-by: Mohammed Gamal <mgamal@redhat.com>
496374
RH-Acked-by: Eduardo Otubo <otubo@redhat.com>
496374
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
496374
496374
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1769920
496374
Branch: rhel-8.2.0
496374
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=24699501
496374
Upstream: RHEL-only (upstream doesn't ship systemd units)
496374
496374
Hyper-V daemons' units are udev activated: when the appropriate device
496374
appears systemd unit is started and normal targets (e.g. multi-user.target)
496374
don't depend on these units. With systemd it is possible to try to isolate
496374
the target (somewhat similar to switching runlevel), this is supposed to
496374
shut everything which the target doesn't depend on (like units started
496374
manually) off. It seems that the general users' expectation is that
496374
hyperv-daemons units survive the procedure.
496374
496374
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
496374
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
496374
---
496374
 hypervfcopyd.service | 1 +
496374
 hypervkvpd.service   | 1 +
496374
 hypervvssd.service   | 1 +
496374
 3 files changed, 3 insertions(+)
496374
496374
diff --git a/hypervfcopyd.service b/hypervfcopyd.service
496374
index fa4a0a3..dd14a97 100644
496374
--- a/hypervfcopyd.service
496374
+++ b/hypervfcopyd.service
496374
@@ -1,6 +1,7 @@
496374
 [Unit]
496374
 Description=Hyper-V FCOPY daemon
496374
 BindsTo=sys-devices-virtual-misc-vmbus\x21hv_fcopy.device
496374
+IgnoreOnIsolate=1
496374
 
496374
 [Service]
496374
 ExecStart=/usr/sbin/hypervfcopyd -n
496374
diff --git a/hypervkvpd.service b/hypervkvpd.service
496374
index d8bfdf3..36ee11c 100644
496374
--- a/hypervkvpd.service
496374
+++ b/hypervkvpd.service
496374
@@ -2,6 +2,7 @@
496374
 Description=Hyper-V KVP daemon
496374
 BindsTo=sys-devices-virtual-misc-vmbus\x21hv_kvp.device
496374
 After=network.target
496374
+IgnoreOnIsolate=1
496374
 
496374
 [Service]
496374
 Type=simple
496374
diff --git a/hypervvssd.service b/hypervvssd.service
496374
index 9751cb3..1e5ff43 100644
496374
--- a/hypervvssd.service
496374
+++ b/hypervvssd.service
496374
@@ -1,6 +1,7 @@
496374
 [Unit]
496374
 Description=Hyper-V VSS daemon
496374
 BindsTo=sys-devices-virtual-misc-vmbus\x21hv_vss.device
496374
+IgnoreOnIsolate=1
496374
 
496374
 [Service]
496374
 ExecStart=/usr/sbin/hypervvssd -n
496374
-- 
496374
1.8.3.1
496374