summaryrefslogtreecommitdiffstats
path: root/scripts/mount-store
diff options
context:
space:
mode:
authorSimon Rettberg2018-03-21 10:33:42 +0100
committerSimon Rettberg2018-03-21 10:33:42 +0100
commitd1195da5b3a1b1a35a0b89ef4e4df1029372bef7 (patch)
treeab40911e15e2b4b89a6064ada5fc12354f3568bc /scripts/mount-store
parent[MountVmStore] Support passing custom mount options (diff)
downloadtmlite-bwlp-d1195da5b3a1b1a35a0b89ef4e4df1029372bef7.tar.gz
tmlite-bwlp-d1195da5b3a1b1a35a0b89ef4e4df1029372bef7.tar.xz
tmlite-bwlp-d1195da5b3a1b1a35a0b89ef4e4df1029372bef7.zip
Fix copy&paste error
Diffstat (limited to 'scripts/mount-store')
-rwxr-xr-xscripts/mount-store8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/mount-store b/scripts/mount-store
index 0faf236..94b868d 100755
--- a/scripts/mount-store
+++ b/scripts/mount-store
@@ -177,13 +177,13 @@ main () {
fi
if [ "$RET" != 0 ]; then
for opt in "#" "vers=4" "vers=3"; do
- mntopts="rw,noatime,noexec,nodev,async,nolock,fg,ac,retry=0,timeo=200,sec=sys"
- [ "$opt" != "#" ] && mntopts="$mntopts,$opt"
- exec_mount "nfs" "$mntopts" "$SOURCE" "$DEST"
+ OPTSTR="rw,noatime,noexec,nodev,async,nolock,fg,ac,retry=0,timeo=200,sec=sys"
+ [ "$opt" != "#" ] && OPTSTR="$OPTSTR,$opt"
+ exec_mount "nfs" "$OPTSTR" "$SOURCE" "$DEST"
RET=$?
[ "$RET" = 0 ] && break
done
- if [ "$RET" = 0 ] && [ -n "$mntopts" ]; then
+ if [ "$RET" = 0 ] && [ -n "$OPTSTR" ]; then
echo "$OPTSTR" > "$NFS_OPTS"
fi
fi