mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-08-04 02:37:40 +00:00
Add condition to run QEMU guest agent for QEMU hypervisor (#752)
The proposed changed is to run the qemu guest agent for QEMU hypervisor. QEMU hypervisor and KVM hypervisor are using the same guest agent. systemd allow detecting the difference between the two hypervisors. The change is using OR trigger, meaning it will trigger if one of the "ConditionVirtualization" rules is true.
This commit is contained in:
parent
5e5aaa21fd
commit
00723f2115
@ -1,7 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=QEMU Guest Agent
|
Description=QEMU Guest Agent
|
||||||
After=syslog.target network.target
|
After=syslog.target network.target
|
||||||
ConditionVirtualization=kvm
|
ConditionVirtualization=|kvm
|
||||||
|
ConditionVirtualization=|qemu
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/libexec/qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0
|
ExecStart=/usr/libexec/qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user