Use memory.stat file instead to retrieve actual rss usage
[util-vserver.git] / scripts / vserver-build.functions
index 66b480a..5d6092d 100644 (file)
@@ -202,7 +202,8 @@ function base._addGeneratedFile
 function base.initFilesystem
 {
     test -z "$1" || _renameVserverCfg
-    { isDirectoryEmpty "$VDIR" && test  ! -e "$SETUP_CONFDIR"; } || colpanic $"\
+    if test -n "$OPTION_SEMIFORCE"; then
+    { { test -n "$OPTION_SEMIFORCE" || isDirectoryEmpty "$VDIR" 1 } && test  ! -e "$SETUP_CONFDIR"; } || colpanic $"\
 vserver-topdirectory '$VDIR' and/or configuration at '$SETUP_CONFDIR'
 exist already; please try to use '--force', or remove them manually."