From 5c5f7de89891cdc46388bc1cfba6096300173234 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sun, 22 May 2022 02:57:42 +0200 Subject: [PATCH] more documentation for TMPDIR --- mmdebstrap | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index d11e0f2..ff5b597 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -7032,7 +7032,12 @@ or fill them with reproducible content: When creating a tarball, a temporary directory is populated with the rootfs before the tarball is packed. The location of that temporary directory will be in F or the location pointed to by C if that environment variable -is set. +is set. Setting C to a different directory than F is useful if +you have F on a tmpfs that is too small for your rootfs. + +If you set C in B mode, then the unshared user must be able to +access the directory. This means that the directory itself must be +world-writable and all its ancestors must be at least world-executable. Since C is only valid outside the chroot, the variable is being unset when running hook scripts. If you need a valid temporary directory in a hook,