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.
master
Dan Fuhry 2016-08-25 17:13:52 -04:00
parent 1a7b71bb14
commit 1090a8826a
1 changed files with 3 additions and 0 deletions

View File

@ -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 ;;