Piotr,
I've rebased this patch to the latest version of fakechroot from SVN. I wonder if you'd consider it? It passes all tests, and we now use it extensively in libguestfs[1] & febootstrap[2].
Original description:
On Mon, Mar 30, 2009 at 06:54:43PM +0100, Richard W.M. Jones wrote:
Here's a patch that adds support for FAKECHROOT_CMD_SUBST. We use it like this:
FAKECHROOT_CMD_SUBST=/sbin/ldconfig=/bin/true fakechroot ...
The substituted command runs outside the chroot, so in the above case it's running the system /bin/true.
Also includes an extra test and documentation.
Signed-off-by: Richard W.M. Jones rjones@redhat.com
Rich.
[1] http://et.redhat.com/~rjones/libguestfs/
[2] http://et.redhat.com/~rjones/febootstrap/