diff options
author | Tomasz Kołosowski | 2021-05-07 21:17:55 +0200 |
---|---|---|
committer | Tomasz Kołosowski | 2021-05-07 21:18:20 +0200 |
commit | 65483bb23ac3f069527d7d40bae40776540bb014 (patch) | |
tree | 333a00b469ed0ac2e7f83834c8890849ef9b76b2 /libvirt.install | |
parent | 21a8c8490076259a6bff841cb22ff2b5a9bae216 (diff) | |
download | aur-65483bb23ac3f069527d7d40bae40776540bb014.tar.gz |
libvirt 7.1.0, patch by ahmubashshir
Diffstat (limited to 'libvirt.install')
-rw-r--r-- | libvirt.install | 12 |
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 } |