diff options
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 } |