From: Enrico Scholz Date: Mon, 16 Feb 2004 19:17:50 +0000 (+0000) Subject: use $_READLINK X-Git-Tag: VERSION_0_10~656 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1afe72b2ced3be9e066b390f52d3211d61d1eee;p=util-vserver.git use $_READLINK mount /proc when doing pkg-management git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@905 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/scripts/functions b/util-vserver/scripts/functions index a4a02a2..827910a 100644 --- a/util-vserver/scripts/functions +++ b/util-vserver/scripts/functions @@ -176,6 +176,8 @@ function _pkgMountRPM "$_SECURE_MOUNT" --chroot "$VDIR" -n --secure --bind "$RPMSTATEDIR" "$_rpmdb_mntpoint" test -z "$WORKAROUND_106057" || mount -n --bind "$RPMSTATEDIR" "$_rpmdb_mntpoint" + + "$_SECURE_MOUNT" --chroot "$VDIR" -n --secure -t proc none /proc } function _pkgSetEnvBase @@ -277,7 +279,7 @@ function getVserverStatus eval "$3"=\$_tmp test "$4" -a $_tmp = 0 || return 0 - _tmp=$(readlink "$1/run") + _tmp=$($_READLINK "$1/run") test "$_tmp" || return 1 rm -f "$_tmp" return 0