summarylogtreecommitdiffstats
path: root/libvirt.install
diff options
context:
space:
mode:
authorTomasz Kołosowski2021-05-07 21:17:55 +0200
committerTomasz Kołosowski2021-05-07 21:18:20 +0200
commit65483bb23ac3f069527d7d40bae40776540bb014 (patch)
tree333a00b469ed0ac2e7f83834c8890849ef9b76b2 /libvirt.install
parent21a8c8490076259a6bff841cb22ff2b5a9bae216 (diff)
downloadaur-65483bb23ac3f069527d7d40bae40776540bb014.tar.gz
libvirt 7.1.0, patch by ahmubashshir
Diffstat (limited to 'libvirt.install')
-rw-r--r--libvirt.install12
1 files changed, 5 insertions, 7 deletions
diff --git a/libvirt.install b/libvirt.install
index 365f7f4f1d33..747bd548b123 100644
--- a/libvirt.install
+++ b/libvirt.install
@@ -1,9 +1,7 @@
post_install() {
- echo ">>> libvirt runs qemu from nobody:kvm by default"
- echo ">>> change the USER if desired in /etc/libvirt/qemu.conf"
- echo ">>> See https://wiki.archlinux.org/index.php/Libvirt for more info"
-}
-
-post_upgrade() {
- echo ">>> You may need to run 'rm -rf ~/.libvirt'"
+ if [[ -f /etc/libvirt/qemu/networks/default.xml ]]
+ then
+ UUID=$(/usr/bin/uuidgen)
+ sed -i "s|<uuid></uuid>|<uuid>$UUID</uuid>|" /etc/libvirt/qemu/networks/default.xml
+ fi
}