From 20921cc28409b67774b59c8ed64dd52336950d87 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Wed, 21 Jan 2009 10:50:03 +0000 Subject: [PATCH] If you un-install libvirt and re-install it, you get a warning from the post-install script: Installing : libvirt ln: creating symbolic link `/etc/libvirt/qemu/networks/autostart/default.xml': File exists See https://bugzilla.redhat.com/462011 --- ChangeLog | 13 +++++++++++++ libvirt.spec.in | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c6ac7253ba..bd13c5a56d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +Wed Jan 21 10:48:12 IST 2009 Mark McLoughlin + + If you un-install libvirt and re-install it, you get a warning + from the post-install script: + + Installing : libvirt + ln: creating symbolic link `/etc/libvirt/qemu/networks/autostart/default.xml': File exists + + See https://bugzilla.redhat.com/462011 + + * libvirt.spec.in: don't create networks/default.xml if it + already exists. + Tue Jan 20 22:39:53 GMT 2009 Daniel P. Berrange Properly handle daemon restarts with storage driver diff --git a/libvirt.spec.in b/libvirt.spec.in index e0ce497343..9121c6d8bc 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -294,7 +294,7 @@ rm -fr %{buildroot} # or on the first upgrade from a non-network aware libvirt only. # We check this by looking to see if the daemon is already installed /sbin/chkconfig --list libvirtd 1>/dev/null 2>&1 -if [ $? != 0 ] +if [ $? != 0 -a ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ] then UUID=`/usr/bin/uuidgen` sed -e "s,,\n $UUID," \ -- GitLab