Tell Network Manager to keep hands off vif interfaces

...somehow indirectly, by specifying the mac; unfortunately I do not
see any other way.
This commit is contained in:
Rafal Wojtczuk 2010-09-07 13:18:08 +02:00
parent a013973806
commit 1239643c73
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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