declare -a guests
-while true; do
+while test $# -gt 0; do
case "$1" in
(--) shift; break;;
+ (-*) break;;
(*)
_setVserverDir "$1"
guests=( "${guests[@]}" "$VSERVER_DIR" )
rc=0
for guest in "${guests[@]}"; do
pushd "$guest/vdir" &> /dev/null
- $_VNAMESPACE -e "$guest" -- \
+ callInNamespace "$guest" \
$_SECURE_MOUNT --chroot --fstab "$guest/fstab" "${options[@]}" "$@"
test "$?" -eq 0 || rc=$?
popd &> /dev/null