Package: nbd-client
Version: 1:2.9.14-1
Severity: normal
Tags: patch

Hi,

As it stands, and as mentioned in the README.Debian which points to bug #460569 
which has been closed, it will currently only work if the nbd-server is 
connected to a working eth0.

initramfs-tools closed their bug as they now export IP from init (and IPOPTS is 
no more).   As best I understand all the implications this means that the nbd 
initramfs-tools script could remove all IP handling as long as it is run by an 
IP exporting init.  To cover it's arbitrary use outside a normal 
initramfs-tools it could still replicate gathering and setting IP from the 
kernel's ip command line.

Like this if you boot without setting ip it seems that klibc ipconfig will 
complain and fail so in the patch I've included below I set IP='eth0' in the 
abscence of a given ip value which maintains the existing default behaviour 
unless or until configure-networking seems to work sanely without any IP input.

Thanks again for your work on the nbdtools in debian and hope this helps,

Niall

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Versions of packages nbd-client depends on:
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  libc6                         2.10.1-2   GNU C Library: Shared libraries

nbd-client recommends no packages.

nbd-client suggests no packages.
diff -ur nbd-2.9.14.orig/debian/nbd-client.initrd nbd-2.9.14/debian/nbd-client.initrd
--- nbd-2.9.14.orig/debian/nbd-client.initrd	2009-10-28 15:22:33.000000000 +0000
+++ nbd-2.9.14/debian/nbd-client.initrd	2009-10-28 15:14:33.680424262 +0000
@@ -26,7 +26,7 @@
 			nbdport=$(echo "$nbdroot" | sed -e "s/^[^,]*,//")
 			;;
 		ip=*)
-			IPOPTS="${x#ip=}"
+			IP="${x#ip=}"
 			;;
 		root=/dev/nbd*)
 			nbdrootdev="${x#root=}"
@@ -44,7 +44,8 @@
 	exit 0
 fi
 
-DEVICE=eth0
+# fallback to old eth0 only behaviour
+[ -z "$IP" ] && IP="eth0"
 
 configure_networking
 

Reply via email to