]> git.proxmox.com Git - mirror_ubuntu-impish-kernel.git/commitdiff
UBUNTU: [Packaging]: Add kernel command line condition to hv-kvp-daemon service
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>
Tue, 15 Jun 2021 22:42:58 +0000 (23:42 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 28 Jun 2021 06:04:07 +0000 (08:04 +0200)
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@canonical.com>
cc: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
debian/linux-cloud-tools-common.hv-kvp-daemon.service

index 571440344cb50f41828bf919385c2c6321b4f634..9f65063bfb1b2917ebbca0d368d66fab7897bddd 100644 (file)
@@ -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