Use the host's /etc/resolv.conf by default.
[util-vserver.git] / scripts / vserver.functions
index 63d1bad..2e8897e 100644 (file)
@@ -147,6 +147,8 @@ function _generateIONiceCommand
     local ionice_class=2
     local ionice_priority=0
 
+    test -n "$_IONICE" || return 0
+
     test -r "$vdir/ionice/class" && read ionice_class <"$vdir"/ionice/class
     test -r "$vdir/ionice/priority" && read ionice_priority <"$vdir"/ionice/priority
 
@@ -966,10 +968,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