diff --git a/ChangeLog b/ChangeLog index f45d181ad8..0dcfee96f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 10 10:09:11 EST 2007 Daniel P. Berrange + + * 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 * src/libvirt_sym.version, src/conf.h, src/conf.c: Export virConf* diff --git a/qemud/Makefile.am b/qemud/Makefile.am index 345fb807a4..f4969b9fcb 100644 --- a/qemud/Makefile.am +++ b/qemud/Makefile.am @@ -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,,\n $(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