_generateChcontextOptions "$1"
}
-function _isAvoidNamespace
-{
- test ! -e "$1"/namespace || return 1
- test -e "$CONFDIR"/.defaults/nonamespace -o \
- -e "$1"/nonamespace
-}
-
function mountVserver
{
local cfgdir=$1
$_CHBIND "${CHBIND_OPTS[@]}" \
$_SECURE_MOUNT -a --chroot "$vdir" --fstab "$cfgdir"/fstab
- _isAvoidNamespace "$cfgdir" || \
+ isAvoidNamespace "$cfgdir" || \
$_SECURE_MOUNT --rbind -n "$vdir" "/"
}
is_ok=1
- _isAvoidNamespace "$cfgdir" || return 0
+ isAvoidNamespace "$cfgdir" || return 0
test -e "$cfgdir"/fstab || return 0
test "$_HAVE_CHBIND_OPTIONS" || _generateChbindOptions "$cfgdir"