[vserver] initscripts package in wheezy uninstallable

From: Andrew Ruthven <andrew.ruthven_at_catalyst.net.nz>
Date: Mon 11 Mar 2013 - 20:58:05 GMT
Message-ID: <1363035485.13285.9.camel@dirk.catalyst.net.nz>

Hey,

Just a heads up, the initscripts package is currently not installable
within a vserver running wheezy, you get:

Setting up initscripts (2.88dsf-41) ...
mount: permission denied
dpkg: error processing initscripts (--configure):
 subprocess installed post-installation script returned error exit
status 1

The issue is that if initscripts thinks it is running on the host system
it tries to run:

 mount -t /dev/shm /dev/shm /run/shm -orw -obind

Which fails within a vserver.

The mount (and a bunch of other code) is protected by a test using the
binary ischroot from the debianutils package.

The issue is that the "ischroot" binary in the debianutils package tests
to see if it can read /proc/1/root. If it can read it then it determines
it is not a vserver.

Unfortunately on at least the 3.4 kernel set of patches (2.3.3.9) you
*can* read /proc/1/root inside a vserver. (Also tested on a 3.2 box
running the benq kernels and /proc/1/root is not readable.)

I've filed a bug in the BTS against debianutils.

Cheers!

-- 
Andrew Ruthven, Wellington, New Zealand
MIITP, ITCP
At work: andrew.ruthven@catalyst.net.nz
At home: andrew@etc.gen.nz
GPG fpr: 34CA 12A3 C6F8 B156 72C2  D0D7 D286 CE0C 0C62 B791
LCA2013: Come join the party... - lca2013.linux.org.au

Received on Mon Mar 11 20:58:28 2013
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 11 Mar 2013 - 20:58:28 GMT by hypermail 2.1.8