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

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