]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Generate random UUID for network config
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 12 Mar 2007 14:10:14 +0000 (14:10 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 12 Mar 2007 14:10:14 +0000 (14:10 +0000)
ChangeLog
qemud/Makefile.am

index f45d181ad8693c32edaa4669874dd456f1d5734d..0dcfee96f162ba87b1bf59380ac84d9dc72238af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Mar 10 10:09:11 EST 2007 Daniel P. Berrange <berrange@redhat.com>
+
+       * qemud/Makefile.am: Generate a fixed, but random UUID in the default
+       network config file when installing it
+
 Fri Mar  9 15:46:11 EST 2007 Daniel P. Berrange <berrange@redhat.com>
 
        * src/libvirt_sym.version, src/conf.h, src/conf.c: Export virConf*
index 345fb807a4957a801eb0abefd0328ca5562897b2..f4969b9fcb3bdaf6996e49afd1093552faa1e5b3 100644 (file)
@@ -1,6 +1,7 @@
 ## Process this file with automake to produce Makefile.in
 
 INCLUDES = @LIBXML_CFLAGS@
+UUID=$(shell uuidgen)
 
 sbin_PROGRAMS = libvirt_qemud
 
@@ -23,6 +24,7 @@ libvirt_qemud_LDADD =
 install-data-local:
        mkdir -p $(DESTDIR)$(sysconfdir)/libvirt/qemu/networks/autostart
        $(INSTALL_DATA) $(srcdir)/default-network.xml $(DESTDIR)$(sysconfdir)/libvirt/qemu/networks/default.xml
+       sed -i -e "s,</name>,</name>\n  <uuid>$(UUID)</uuid>," $(DESTDIR)$(sysconfdir)/libvirt/qemu/networks/default.xml
        test -e $(DESTDIR)$(sysconfdir)/libvirt/qemu/networks/autostart/default.xml || \
            ln -s ../default.xml $(DESTDIR)$(sysconfdir)/libvirt/qemu/networks/autostart/default.xml
        mkdir -p $(DESTDIR)$(localstatedir)/run/libvirt