mkinitrd unification across distributions
 help / color / mirror / Atom feed
* [PATCH] provide name based nbd connects
@ 2012-03-17 11:33 Wim Muskee
       [not found] ` <CAKzfqkf5Vn_RijjJ0Vames6zAsypTbNUJ+tqxD4A8S3XA-qbqw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Wim Muskee @ 2012-03-17 11:33 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-21 12:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-17 11:33 [PATCH] provide name based nbd connects Wim Muskee
     [not found] ` <CAKzfqkf5Vn_RijjJ0Vames6zAsypTbNUJ+tqxD4A8S3XA-qbqw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-21 12:07   ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox