mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
Generate random UUID for network config
This commit is contained in:
parent
deb5db5e1b
commit
a274fe6574
@ -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*
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user