]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
livenet: support nfs:// urls in livenet-generator 153/head
authorDan Fuhry <dfuhry@datto.com>
Thu, 25 Aug 2016 21:13:52 +0000 (17:13 -0400)
committerDan Fuhry <dfuhry@datto.com>
Thu, 25 Aug 2016 21:13:52 +0000 (17:13 -0400)
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.

modules.d/90livenet/livenet-generator.sh

index 377d53bc8f4f31642fc417656246bd2a70698264..969ef4f29331d3c9508d1ff50ca0df53b5b26bc2 100755 (executable)
@@ -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 ;;