From: Harald Hoyer Date: Mon, 14 Mar 2016 14:55:03 +0000 (+0100) Subject: url-lib/url-lib.sh:nfs_fetch_url(): pass file directory to query if nfs is already... X-Git-Tag: 033-502~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=043d61b54223ed6f9ef7faa2b9c01750272948c3;p=thirdparty%2Fdracut.git url-lib/url-lib.sh:nfs_fetch_url(): pass file directory to query if nfs is already mounted Otherwise the returned mount path includes the file with the directory https://bugzilla.redhat.com/show_bug.cgi?id=1302764 --- diff --git a/modules.d/45url-lib/url-lib.sh b/modules.d/45url-lib/url-lib.sh index 12df9b4c8..f3d152d61 100755 --- a/modules.d/45url-lib/url-lib.sh +++ b/modules.d/45url-lib/url-lib.sh @@ -106,7 +106,7 @@ nfs_fetch_url() { local filepath="${path%/*}" filename="${path##*/}" mntdir="" # skip mount if server:/filepath is already mounted - mntdir=$(nfs_already_mounted "$server" "$path") + mntdir=$(nfs_already_mounted "$server" "$filepath") if [ -z "$mntdir" ]; then local mntdir="$(mkuniqdir /run nfs_mnt)" mount_nfs "$nfs:$server:$filepath${options:+:$options}" "$mntdir"