WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] SUSE has sensible use of ifup nowadays

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] SUSE has sensible use of ifup nowadays
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Wed, 16 Jan 2008 15:16:36 +0000
Delivery-date: Wed, 16 Jan 2008 07:18:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
While wading through the patches made to Xen by OpenSUSE in their
[s]rpm, I found that they have removed various special casing for ifup
on ther distribution.

We should do likewise.  This change should be included in the next
xen-unstable, NOT in 3.2.  By then we hope that SLES et al have also
been updated.

The patch below is not derived directly from the OpenSUSE package,
since the OpenSUSE patch deleted the attempt to cope with Gentoo.

Ian.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

diff -r 2491691e3e69 tools/examples/xen-network-common.sh
--- a/tools/examples/xen-network-common.sh      Sat Dec 29 17:57:47 2007 +0000
+++ b/tools/examples/xen-network-common.sh      Mon Jan 14 15:45:36 2008 +0000
@@ -16,11 +16,6 @@
 #
 
 
-# On SuSE it is necessary to run a command before transfering addresses and
-# routes from the physical interface to the virtual.  This command creates a
-# variable $HWD_CONFIG_0 that specifies the appropriate configuration for
-# ifup.
-
 # Gentoo doesn't have ifup/ifdown, so we define appropriate alternatives.
 
 # Other platforms just use ifup / ifdown directly.
@@ -32,17 +27,7 @@
 #           that the virtual device will take once the physical device has
 #           been renamed.
 
-if [ -e /etc/SuSE-release ]
-then
-  preiftransfer()
-  {
-    eval `/sbin/getcfg -d /etc/sysconfig/network/ -f ifcfg- -- $1`
-  }
-  ifup()
-  {
-    /sbin/ifup ${HWD_CONFIG_0} $1
-  }
-elif ! which ifup >/dev/null 2>/dev/null
+if ! which ifup >/dev/null 2>/dev/null
 then
   preiftransfer()
   {
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] SUSE has sensible use of ifup nowadays, Ian Jackson <=