Blame 0118-livenet-support-nfs-urls-in-livenet-generator.patch

Harald Hoyer 53404a
From 1090a8826a8435196554ac16f3b8a01cbb03f4be Mon Sep 17 00:00:00 2001
Harald Hoyer 53404a
From: Dan Fuhry <dfuhry@datto.com>
Harald Hoyer 53404a
Date: Thu, 25 Aug 2016 17:13:52 -0400
Harald Hoyer 53404a
Subject: [PATCH] livenet: support nfs:// urls in livenet-generator
Harald Hoyer 53404a
Harald Hoyer 53404a
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.
Harald Hoyer 53404a
---
Harald Hoyer 53404a
 modules.d/90livenet/livenet-generator.sh | 3 +++
Harald Hoyer 53404a
 1 file changed, 3 insertions(+)
Harald Hoyer 53404a
Harald Hoyer 53404a
diff --git a/modules.d/90livenet/livenet-generator.sh b/modules.d/90livenet/livenet-generator.sh
Harald Hoyer 53404a
index 377d53b..969ef4f 100755
Harald Hoyer 53404a
--- a/modules.d/90livenet/livenet-generator.sh
Harald Hoyer 53404a
+++ b/modules.d/90livenet/livenet-generator.sh
Harald Hoyer 53404a
@@ -16,6 +16,9 @@ fi
Harald Hoyer 53404a
 [ "${liveroot%%:*}" = "live" ] || exit 0
Harald Hoyer 53404a
 
Harald Hoyer 53404a
 case "$liveroot" in
Harald Hoyer 53404a
+    live:nfs://*|nfs://*) \
Harald Hoyer 53404a
+        root="${root#live:}"
Harald Hoyer 53404a
+        rootok=1 ;;
Harald Hoyer 53404a
     live:http://*|http://*) \
Harald Hoyer 53404a
         root="${root#live:}"
Harald Hoyer 53404a
         rootok=1 ;;