On 2017-03-19, Wolfgang Schweer wrote:
> On Sun, Mar 19, 2017 at 01:11:49PM -0700, Vagrant Cascadian wrote:
>> Untested patch below, please let me know if it works...
>
> Sorry to inform you that it doesn't work for me, but maybe I've done 
> something wrong or missed a step.

I think the previous patch failed to match when nbdroot=/opt/ltsp/i386,
and I'm hoping this fixes it for you:

diff --git a/debian/nbd-client.initrd b/debian/nbd-client.initrd
index 680e4ee..bf66280 100644
--- a/debian/nbd-client.initrd
+++ b/debian/nbd-client.initrd
@@ -70,6 +70,13 @@ case "$nbdroot" in
                nbdport=${nbdportpath%%/*}
                nbdpath=${nbdportpath#$nbdport}
                ;;
+       /*|*:/*)
+               # ipv4:server/path
+               nbdsrv=${nbdroot%%[:/]*}
+               nbdportpath=${nbdroot#$nbdsrv}
+               nbdportpath=${nbdportpath#:}
+               nbdpath=${nbdportpath}
+               ;;
        *)
                # ipv4:port/path
                nbdsrv=${nbdroot%%[:/]*}


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature

Reply via email to