[PATCH][B/F/G/H/I/unstable linux] UBUNTU: [Packaging]: Add kernel command line condition to hv-kvp-daemon service
Dimitri John Ledkov
dimitri.ledkov at canonical.com
Tue Jun 15 22:42:58 UTC 2021
linux-cloud-tools-common ships a service for hyper-v hypervisor. It is
known to be prohibited on certain instance types. Add a kernel command
line condition to skip starting this service there.
BugLink: https://bugs.launchpad.net/bugs/1932081
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
cc: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>
---
This patch needs to go into bionic:linux focal:linux groovy:linux
hirsute:linux impish:linux and unstable.
focal:linux is desired first.
debian/linux-cloud-tools-common.hv-kvp-daemon.service | 1 +
1 file changed, 1 insertion(+)
diff --git a/debian/linux-cloud-tools-common.hv-kvp-daemon.service b/debian/linux-cloud-tools-common.hv-kvp-daemon.service
index 571440344cb5..9f65063bfb1b 100644
--- a/debian/linux-cloud-tools-common.hv-kvp-daemon.service
+++ b/debian/linux-cloud-tools-common.hv-kvp-daemon.service
@@ -4,6 +4,7 @@
[Unit]
Description=Hyper-V KVP Protocol Daemon
ConditionVirtualization=microsoft
+ConditionKernelCommandLine=!snapd_recovery_mode
DefaultDependencies=no
BindsTo=sys-devices-virtual-misc-vmbus\x21hv_kvp.device
After=sys-devices-virtual-misc-vmbus\x21hv_kvp.device systemd-remount-fs.service
--
2.27.0
More information about the kernel-team
mailing list