mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/qemu to 7.0.0-9
This commit is contained in:
parent
182fa0a0fc
commit
dff79d99f0
8 changed files with 924 additions and 336 deletions
1
extra/qemu/99-qemu-guest-agent.rules
Normal file
1
extra/qemu/99-qemu-guest-agent.rules
Normal file
|
@ -0,0 +1 @@
|
|||
SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", TAG+="systemd" ENV{SYSTEMD_WANTS}="qemu-guest-agent.service"
|
1159
extra/qemu/PKGBUILD
1159
extra/qemu/PKGBUILD
File diff suppressed because it is too large
Load diff
1
extra/qemu/bridge.conf
Normal file
1
extra/qemu/bridge.conf
Normal file
|
@ -0,0 +1 @@
|
|||
allow virbr0
|
14
extra/qemu/qemu-common.install
Normal file
14
extra/qemu/qemu-common.install
Normal file
|
@ -0,0 +1,14 @@
|
|||
post_install() {
|
||||
if [[ -d /run/udev ]]; then
|
||||
local file files=(
|
||||
/sys/devices/virtual/misc/vhost-net
|
||||
)
|
||||
|
||||
# trigger change event when modules are already loaded
|
||||
for file in "${files[@]}"; do
|
||||
if [[ -d $file ]]; then
|
||||
udevadm trigger --action=change "$file"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
10
extra/qemu/qemu-ga.conf
Normal file
10
extra/qemu/qemu-ga.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
[general]
|
||||
daemonize = 0
|
||||
fsfreeze-hook = /etc/qemu/fsfreeze-hook
|
||||
method = virtio-serial
|
||||
path = /dev/virtio-ports/org.qemu.guest_agent.0
|
||||
pidfile = /run/qemu-ga.pid
|
||||
statedir = /run
|
||||
verbose = 0
|
||||
# blacklist =
|
||||
# logfile =
|
|
@ -1,9 +0,0 @@
|
|||
[Unit]
|
||||
Description=QEMU Guest Agent
|
||||
ConditionPathExists=/dev/virtio-ports/org.qemu.guest_agent.0
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/qemu-ga
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
2
extra/qemu/qemu-sysusers.conf
Normal file
2
extra/qemu/qemu-sysusers.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
u qemu - "QEMU user" - -
|
||||
m qemu kvm
|
|
@ -1,8 +0,0 @@
|
|||
# Arg 1: the new package version
|
||||
post_install() {
|
||||
# trigger events on modules files when already loaded
|
||||
for _f in /sys/devices/virtual/misc/vhost-net; do
|
||||
[[ -e "$_f" ]] && udevadm trigger "$_f"
|
||||
done
|
||||
:
|
||||
}
|
Loading…
Reference in a new issue