diff options
author | Jed Liu | 2015-08-27 18:48:50 -0400 |
---|---|---|
committer | Jed Liu | 2015-08-27 18:48:50 -0400 |
commit | 15fdc8067fa9660d58b3e8b71d25f07cc50d9e84 (patch) | |
tree | 9e3b61012d125d093a3b7091365627c8dd78e06d /qemu.install | |
parent | 6f9e0c16ebb1bbbadf369888c3c85362c8778e7d (diff) | |
download | aur-15fdc8067fa9660d58b3e8b71d25f07cc50d9e84.tar.gz |
upgpkg: qemu-minimal 2.4.0-2
Diffstat (limited to 'qemu.install')
-rw-r--r-- | qemu.install | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/qemu.install b/qemu.install index 59a32cd8ddda..b1604ef1329e 100644 --- a/qemu.install +++ b/qemu.install @@ -1,19 +1,25 @@ -# kvm: the new package version +# Arg 1: the new package version post_install() { - # - groupadd kvm -f -g 78 + # create kvm group + systemd-sysusers qemu.conf + + # trigger events on modules files when already loaded + for _f in /sys/devices/virtual/misc/{kvm,vhost-net}; do + [[ -e "$_f" ]] && udevadm trigger "$_f" + done } +# arg 1: the new package version +# arg 2: the old package version post_upgrade() { - if [ "$(vercmp $2 0.11)" -lt 0 ]; then + if (( "$(vercmp $2 0.11)" < 0 )); then echo "With the release of qemu and qemu-kvm 0.12.X, the kqemu kernel module" echo "is no longer supported and will be removed from the repositories. You" echo "can safely uninstall it from your system." fi - if [ "$(vercmp $2 1.3.1)" -lt 0 ]; then + if (( "$(vercmp $2 1.3.1)" < 0 )); then echo "With the release of qemu 1.3.0, qemu-kvm binary is removed." echo "You need to change the emulator path, if you use libvirt by using:" echo "'virsh edit <vm-name>'" fi } - |