From 613d0008c821237c09326df1f5082ae38d59213c Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 10 Oct 2006 10:23:03 +0000 Subject: [PATCH] * fixed sheba/util-vserver to mount dev/pts inside of the namespace and not from the host. * fixed sheba/util-vserver to really patch the default fstab for the guests. --- pkg_util-vserver.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg_util-vserver.conf b/pkg_util-vserver.conf index 59fbcaa..482d138 100644 --- a/pkg_util-vserver.conf +++ b/pkg_util-vserver.conf @@ -54,9 +54,11 @@ sheba_activate_vserver() { cat <<-EOT > $defaults/scripts/post-start #!/bin/sh + . $libdir/util-vserver/util-vserver-vars + # mount devpts after /dev was populated # - mount -t devpts -o gid=5,mode=620 none dev/pts + \$_SECURE_MOUNT -t devpts -o gid=5,mode=620,dev --chroot none /dev/pts EOT chmod +x $defaults/scripts/{pre,post}-start @@ -70,4 +72,4 @@ sheba_activate_vserver() { hook_add postmake 5 'sheba_activate_vserver' -var_append patchfile ' ' $base/target/$target/patches/$pkg.patch +var_append patchfiles ' ' $base/target/$target/patches/$pkg.patch