From: Daniel Hokka Zakrisson Date: Wed, 18 Mar 2009 19:26:51 +0000 (+0000) Subject: -o shared doesn't work with --rbind. X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=116542ffd07d679315cf7ca7b17f29fc59ab342b;p=util-vserver.git -o shared doesn't work with --rbind. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2831 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/scripts/vserver.functions b/scripts/vserver.functions index 63d1bad..b8ed277 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -966,10 +966,10 @@ function mountVserver _namespaceCleanup "$cfgdir" real_vdir=$(getPhysicalDir "$vdir") - ! $_VSERVER_INFO - FEATURE PIVOT_ROOT || \ - extra_opt=,shared isAvoidNamespace "$cfgdir" || \ - $_SECURE_MOUNT --rbind -n -o dev$extra_opt "$vdir" "$real_vdir" + $_SECURE_MOUNT --rbind -n -o dev "$vdir" "$real_vdir" + ! $_VSERVER_INFO - FEATURE PIVOT_ROOT || \ + $_SECURE_MOUNT -n -o shared,rec "$real_vdir" "$real_vdir" } function _umountVserverInternal