Because nbd-server also provides name-based exports instead of
port-based ones, make it possible to connect to those.

--- modules.d/95nbd/nbdroot.sh.orig     2012-03-17 12:23:52.988936315 +0100
+++ modules.d/95nbd/nbdroot.sh  2012-03-17 12:26:12.048798184 +0100
@@ -30,6 +30,11 @@
 nbdflags=${root%%:*}
 nbdopts=${root#*:}

+# If nbdport not an integer, then assume name based import
+if [[ $nbdport != [0-9]* ]]; then
+    nbdport="-N $nbdport"
+fi
+
 if [ "$nbdopts" = "$nbdflags" ]; then
     unset nbdopts
 fi
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to