[Pkg-xen-devel] Bug#396477: network-bridge script exits prematurely

Miquel van Smoorenburg mikevs at xs4all.net
Wed Nov 1 00:22:42 CET 2006


Package: xen-utils-common
Version: 3.0+hg11624-2
Severity: normal

I'm running etch with xen 3.0.3 with a hand-compiled 2.6.18.1
kernel. The /etc/xen/scripts/network-bridge fails to run,
because it (effectively) does this:

	set -e

	modprobe netloop > /dev/null 2>&1

As I do not have a netloop module (where is it supposed to come
from ? The 2.6.18.1 xen-patched kernel doesn't have the string
netloop in there anywhere) the script exits right there.

The following patch fixes it:

--- network-bridge.ORIG 2006-10-08 19:04:48.000000000 +0200
+++ network-bridge      2006-11-01 00:13:36.000000000 +0100
@@ -59,7 +59,7 @@
 findCommand "$@"
 evalVariables "$@"
 
-modprobe netloop > /dev/null 2>&1
+modprobe netloop > /dev/null 2>&1 || true
 
 vifnum=${vifnum:-$(ip route list | awk '/^default / { print $NF }' | sed 's/^[^0-9]*//')}
 vifnum=${vifnum:-0}


Mike.




More information about the Pkg-xen-devel mailing list