From: Dan Fuhry Date: Thu, 25 Aug 2016 21:13:52 +0000 (-0400) Subject: livenet: support nfs:// urls in livenet-generator X-Git-Tag: 045~114^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F153%2Fhead;p=thirdparty%2Fdracut.git livenet: support nfs:// urls in livenet-generator This is a further improvement on PR #105 which re-adds support for nfs:// urls to root=live:nfs://... Symptoms prior to applying this patch are that sysroot.mount times out when following the nfs:// syntax for the path to the live image. An additional case is added to livenet-generator to support the nfs protocol. --- diff --git a/modules.d/90livenet/livenet-generator.sh b/modules.d/90livenet/livenet-generator.sh index 377d53bc8..969ef4f29 100755 --- a/modules.d/90livenet/livenet-generator.sh +++ b/modules.d/90livenet/livenet-generator.sh @@ -16,6 +16,9 @@ fi [ "${liveroot%%:*}" = "live" ] || exit 0 case "$liveroot" in + live:nfs://*|nfs://*) \ + root="${root#live:}" + rootok=1 ;; live:http://*|http://*) \ root="${root#live:}" rootok=1 ;;