use new secure-mount syntax
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 13 Oct 2003 19:51:18 +0000 (19:51 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 13 Oct 2003 19:51:18 +0000 (19:51 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@91 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/functions

index 6735f2e..947b4a4 100644 (file)
@@ -146,7 +146,7 @@ function _pkgMountRPM
     _pkgMountBindDir "$RPMETCDIR" /etc/rpm
     test "$RPMLIBDIR" = "/" || _pkgMountBindDir "$RPMLIBDIR" /usr/lib/rpm
 
-    "$_SECURE_MOUNT" "$VDIR" "$RPMSTATEDIR" "$_rpmdb_mntpoint"
+    "$_SECURE_MOUNT" --chroot "$VDIR" -n --secure --bind "$RPMSTATEDIR" "$_rpmdb_mntpoint"
     test -z "$WORKAROUND_106057" || mount -n --bind "$RPMSTATEDIR" "$_rpmdb_mntpoint"
 }