[Pkg-sysvinit-devel] Bug#633845: initscripts: unupgradeable on vserver

Roger Leigh rleigh at codelibre.net
Thu Jul 14 11:15:40 UTC 2011


On Thu, Jul 14, 2011 at 01:01:20PM +0200, Adam Borowski wrote:
> On Thu, Jul 14, 2011 at 11:57:29AM +0100, Roger Leigh wrote:
> > What is the return value of ischroot in the vserver (when run as
> > root)?
> 
> 2 (failure to detect)

Does /proc (/proc/1/root) exist inside the vserver?  Is /proc
available during normal vserver operation?

2 would default to treating the system as a standard system, which
would result in the mount failure you see.  We could default
failure to detect to reporting a chroot being present, which
would be safer for vservers, but equally would do the wrong thing
on normal systems without /proc being mounted.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20110714/b35ba51b/attachment.pgp>


More information about the Pkg-sysvinit-devel mailing list