projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b63f833
)
Allow NFS mounts.
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Wed, 16 Mar 2011 15:12:13 +0000 (16:12 +0100)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Wed, 16 Mar 2011 15:12:13 +0000 (16:12 +0100)
scripts/vmount
patch
|
blob
|
history
diff --git
a/scripts/vmount
b/scripts/vmount
index
1e40f85
..
c9dde07
100755
(executable)
--- a/
scripts/vmount
+++ b/
scripts/vmount
@@
-69,7
+69,7
@@
tmp=$(getopt -o +o:t:an --long help,version,debug,bind,rbind,move -n "$0" -- "$@
eval set -- "$tmp"
declare -a options
-
+fstype=""
while true; do
case "$1" in
(--help) showHelp $0 ;;
@@
-79,6
+79,7
@@
while true; do
options=( "${options[@]}" "$1" )
;;
(-t|-o) options=( "${options[@]}" "$1" "$2" )
+ test "$1" != "-t" || fstype="$1"
shift
;;
(--) shift; break;;
@@
-89,7
+90,7
@@
done
case "x$1" in
(x/*|x) ;;
- (*) panic $"vmount: the source must be an absolute path";;
+ (*) test "$fstype" = "nfs" || panic $"vmount: the source must be an absolute path";;
esac
rc=0