[Pkg-libvirt-maintainers] Bug#973489: libvirt-daemon-system: upgrade overwrites generated file /etc/libvirt/qemu/networks/default.xml
Guido Günther
agx at sigxcpu.org
Fri Nov 6 10:35:06 GMT 2020
Hi,
On Sat, Oct 31, 2020 at 05:50:23PM +0100, Thorsten Glaser wrote:
> Package: libvirt-daemon-system
> Version: 6.8.0-1
> Severity: normal
> X-Debbugs-Cc: tg at mirbsd.de
>
> I suspect this file should not have been a conffile, i.e. not
> shipped in /etc (but somewhere under /usr and copied to /etc
> during postinst).
>
> NOTE: Migrating to _that_ setup is dangerous as well, see #971683
> for what can happen when done naïvely.
>
> […]
> Preparing to unpack .../23-libvirt-daemon-system_6.8.0-1_amd64.deb ...
> Unpacking libvirt-daemon-system (6.8.0-1) over (6.6.0-2) ...
> […]
> Setting up libvirt-daemon (6.8.0-1) ...
> Setting up libvirt-daemon-driver-qemu (6.8.0-1) ...
> Setting up libvirt-daemon-system (6.8.0-1) ...
> Installing new version of config file /etc/apparmor.d/abstractions/libvirt-qemu ...
> Installing new version of config file /etc/apparmor.d/usr.sbin.libvirtd ...
> Installing new version of config file /etc/libvirt/libvirtd.conf ...
>
> Configuration file '/etc/libvirt/qemu/networks/default.xml'
> ==> Modified (by you or by a script) since installation.
> ==> Package distributor has shipped an updated version.
> What would you like to do about it ? Your options are:
> Y or I : install the package maintainer's version
> N or O : keep your currently-installed version
> D : show the differences between the versions
> Z : start a shell to examine the situation
> The default action is to keep your current version.
> *** default.xml (Y/I/N/O/D/Z) [default=N] ? d
> --- /etc/libvirt/qemu/networks/default.xml 2015-06-03 22:04:56.021794155 +0200
> +++ /etc/libvirt/qemu/networks/default.xml.dpkg-new 2020-10-01 09:50:39.000000000 +0200
> @@ -1,16 +1,7 @@
> -<!--
> -WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
> -OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
> - virsh net-edit default
> -or other application using the libvirt API.
> --->
> -
> <network>
> <name>default</name>
> - <uuid>aaf572f9-67bf-4d32-9d39-ffca92ff9784</uuid>
> - <forward mode='nat'/>
> - <bridge name='virbr0' stp='on' delay='0'/>
> - <mac address='52:54:00:f1:17:8c'/>
> + <bridge name='virbr0'/>
> + <forward/>
> <ip address='192.168.122.1' netmask='255.255.255.0'>
> <dhcp>
> <range start='192.168.122.2' end='192.168.122.254'/>
>
> Configuration file '/etc/libvirt/qemu/networks/default.xml'
> ==> Modified (by you or by a script) since installation.
> ==> Package distributor has shipped an updated version.
> What would you like to do about it ? Your options are:
> Y or I : install the package maintainer's version
> N or O : keep your currently-installed version
> D : show the differences between the versions
> Z : start a shell to examine the situation
> The default action is to keep your current version.
> *** default.xml (Y/I/N/O/D/Z) [default=N] ? _
Hmmm...it used to be in /etc since it was *not* autogenerated. Andrea
do you know if anything changed in that regard?
Cheers,
-- Guido
More information about the Pkg-libvirt-maintainers
mailing list