Files
tegra-linux-noble/debian/linux-cloud-tools-common.hv-kvp-daemon.service
Gauthier Jolly 7baf33c435 UBUNTU: [Packaging] disable hv-kvp-daemon if needed
BugLink: https://bugs.launchpad.net/bugs/2091744

The daemon reads from this vmbus, if it is not present, it will just
exit with an error. Adding this line to the service file will prevent
systemd from trying to start the daemon if the device is not present.

(cherry picked from commit 7da99ea3a1a745f6fd0c8632ef89573437888af6 jammy:linux)
Signed-off-by: John Cabaj <john.cabaj@canonical.com>
Acked-by: Magali Lemes <magali.lemes@canonical.com>
Acked-by: Tim Whisonant <tim.whisonant@canonical.com>
Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
2025-01-17 14:45:05 +03:00

21 lines
641 B
Desktop File

# On Azure/Hyper-V systems start the hv_kvp_daemon
#
# author "Andy Whitcroft <apw@canonical.com>"
[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
Before=shutdown.target cloud-init-local.service walinuxagent.service
Conflicts=shutdown.target
RequiresMountsFor=/var/lib/hyperv
ConditionPathExists=/dev/vmbus/hv_kvp
[Service]
ExecStart=/usr/sbin/hv_kvp_daemon -n
[Install]
WantedBy=multi-user.target