more documentation for TMPDIR

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-05-22 02:57:42 +02:00
parent 29b23bbcbc
commit 5c5f7de898
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -7032,7 +7032,12 @@ or fill them with reproducible content:
When creating a tarball, a temporary directory is populated with the rootfs 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 before the tarball is packed. The location of that temporary directory will be
in F</tmp> or the location pointed to by C<TMPDIR> if that environment variable in F</tmp> or the location pointed to by C<TMPDIR> if that environment variable
is set. is set. Setting C<TMPDIR> to a different directory than F</tmp> is useful if
you have F</tmp> on a tmpfs that is too small for your rootfs.
If you set C<TMPDIR> in B<unshare> 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<TMPDIR> is only valid outside the chroot, the variable is being unset Since C<TMPDIR> 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, when running hook scripts. If you need a valid temporary directory in a hook,