On 2017-03-20, Wolfgang Schweer wrote: > On Mon, Mar 20, 2017 at 12:09:25PM -0700, Vagrant Cascadian wrote: >> I think the previous patch failed to match when nbdroot=/opt/ltsp/i386, >> and I'm hoping this fixes it for you: > > [...] > >> + /*|*:/*) > > Yay, fixed; you've done a good job as always...
Glad to hear it! Improved variant of patch that removes unecessary "nbdportpath" variable. Should be equivalent to the patch that worked. diff --git a/debian/nbd-client.initrd b/debian/nbd-client.initrd index 680e4ee..0e2c511 100644 --- a/debian/nbd-client.initrd +++ b/debian/nbd-client.initrd @@ -70,6 +70,12 @@ case "$nbdroot" in nbdport=${nbdportpath%%/*} nbdpath=${nbdportpath#$nbdport} ;; + /*|*:/*) + # ipv4:server/path + nbdsrv=${nbdroot%%[:/]*} + nbdpath=${nbdroot#$nbdsrv} + nbdpath=${nbdpath#:} + ;; *) # ipv4:port/path nbdsrv=${nbdroot%%[:/]*} live well, vagrant
signature.asc
Description: PGP signature