unquote nbd port
authorWim Muskee <wimmuskee@gmail.com>
Sat, 25 Aug 2012 11:42:12 +0000 (13:42 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 6 Sep 2012 08:50:05 +0000 (10:50 +0200)
Name based connects fail because of the quotes around the $nbdport.
For name based connects, the -N option also gets included. For
instance nbd-client 192.168.0.1 '-N ltsp' /dev/nbd0.
I believe the quotes are not necessary for actual port numbers.

modules.d/95nbd/nbdroot.sh

index 7656120..4d06425 100755 (executable)
@@ -95,7 +95,7 @@ while [ ! -b /dev/nbd0 ]; do
     i=$(( $i + 1))
 done
 
-nbd-client $preopts "$nbdserver" "$nbdport" /dev/nbd0 $opts || exit 1
+nbd-client $preopts "$nbdserver" $nbdport /dev/nbd0 $opts || exit 1
 
 # If we didn't get a root= on the command line, then we need to
 # add the udev rules for mounting the nbd0 device