From 1239643c73d114816f7039952a2b4536466bbb93 Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Tue, 7 Sep 2010 13:18:08 +0200 Subject: [PATCH] Tell Network Manager to keep hands off vif interfaces ...somehow indirectly, by specifying the mac; unfortunately I do not see any other way. --- rpm_spec/core-dom0.spec | 3 +++ rpm_spec/core-netvm.spec | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/rpm_spec/core-dom0.spec b/rpm_spec/core-dom0.spec index 58ba4e1d..80e7d3d7 100644 --- a/rpm_spec/core-dom0.spec +++ b/rpm_spec/core-dom0.spec @@ -114,6 +114,9 @@ sed -i 's/\/block /\/block.qubes /' /etc/udev/rules.d/xen-backend.rules %post +if ! grep -q ^no-auto-default.*=.*FE:FF:FF:FF:FF:FF /etc/NetworkManager/nm-system-settings.conf ; then + echo no-auto-default=FE:FF:FF:FF:FF:FF >> /etc/NetworkManager/nm-system-settings.conf +fi if [ -e /etc/yum.repos.d/qubes-r1-dom0.repo ]; then # we want the user to use the repo that comes with qubes-code-dom0 packages instead rm -f /etc/yum.repos.d/qubes-r1-dom0.repo diff --git a/rpm_spec/core-netvm.spec b/rpm_spec/core-netvm.spec index 88255aee..1717b6b1 100644 --- a/rpm_spec/core-netvm.spec +++ b/rpm_spec/core-netvm.spec @@ -80,6 +80,10 @@ cp /var/lib/qubes/serial.conf /etc/init/serial.conf %post +if ! grep -q ^no-auto-default.*=.*FE:FF:FF:FF:FF:FF /etc/NetworkManager/nm-system-settings.conf ; then + echo no-auto-default=FE:FF:FF:FF:FF:FF >> /etc/NetworkManager/nm-system-settings.conf +fi + if [ "$1" != 1 ] ; then # do this whole %post thing only when updating for the first time... exit 0