summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMike Bonnet <mikeb@redhat.com>2008-01-24 17:16:46 -0500
committerMichael E Brown <mebrown@michaels-house.net>2008-01-24 18:49:46 -0600
commitf1f47ae2bb7770c6ed072f779763c275a18f9828 (patch)
treeaf595968d93507c43be6f1c97bc563babc87ccc9 /docs
parent0fd7dd4e63e09671bb816510b3fde1555814e085 (diff)
downloadmock-f1f47ae2bb7770c6ed072f779763c275a18f9828.tar.gz
mock-f1f47ae2bb7770c6ed072f779763c275a18f9828.tar.xz
mock-f1f47ae2bb7770c6ed072f779763c275a18f9828.zip
set the current working directory in the chroot
This patch allows you to set the current working directory (in the chroot) before running a command with --chroot. This avoids the need to pass shell snippets ('cd /some/path && /run/cmd') to mock when running a command that expects to executed from a certain directory. It's useful when using --copyin to setup the environment before running a command. >From e4071d1d41a62ccf4461dfab958f9325edf30c97 Mon Sep 17 00:00:00 2001 From: Mike Bonnet <mikeb@redhat.com> Date: Thu, 24 Jan 2008 17:09:06 -0500 Subject: [PATCH] optionally set the current working directory (in the chroot) before running command with --chroot Signed-off-by: Michael E Brown <mebrown@michaels-house.net>
Diffstat (limited to 'docs')
-rw-r--r--docs/mock.13
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/mock.1 b/docs/mock.1
index 38c3233..531d117 100644
--- a/docs/mock.1
+++ b/docs/mock.1
@@ -140,6 +140,9 @@ Fail build if rpmbuild takes longer than 'timeout' seconds
\fB\-\-unpriv\fR
Drop privileges before running command when using --chroot
.TP
+\fB\-\-cwd=\fR\fIDIR\fP
+Change to the specified directory (relative to the chroot) before running command when using --chroot
+.TP
\fB\-q\fR, \fB\-\-quiet\fR
Be quiet.
.TP