Make vmount <guest> -- -a work.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 3 Jan 2008 14:18:30 +0000 (14:18 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 3 Jan 2008 14:18:30 +0000 (14:18 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2649 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vmount

index 0afe144..63741f6 100755 (executable)
@@ -30,7 +30,7 @@ function showHelp()
     echo \
 $"Usage: $0 <vserver-name> -- [-o options] [--bind|--rbind]
          [-t <type>] [-a] [-n] [--move]
-         <source> <destination>
+         [<source> [<destination>]]
 
 <source>       ...  what to mount, this is relative to the host's root
 <destination>  ...  where to mount it, this is relative to the guest's root
@@ -86,8 +86,8 @@ while true; do
     shift
 done
 
-case "$1" in
-    (/*)       ;;
+case "x$1" in
+    (x/*|x)    ;;
     (*)                panic $"vmount: the source must be an absolute path";;
 esac