diff options
| author | Raul Benencia <id@rbenencia.name> | 2026-07-11 13:21:58 -0700 |
|---|---|---|
| committer | Raul Benencia <id@rbenencia.name> | 2026-07-26 10:28:27 -0700 |
| commit | cfcd61cbb53efd6654b1c889917d7dba0c2d1732 (patch) | |
| tree | 65aa6bbc01f028c56bb943c9d75dfe295aa02d7e /.alias.d | |
| parent | d089656bdd0e39604046dd970be17963fda659e2 (diff) | |
alias.d: force TMPDIR=/tmp for mmdebstrap unshare
Our 0700 $HOME/tmp can't be traversed by the sub-UIDs mmdebstrap maps
in unshare mode; point chroot creation at a world-traversable /tmp.
Diffstat (limited to '.alias.d')
| -rw-r--r-- | .alias.d/05-debian | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.alias.d/05-debian b/.alias.d/05-debian index a283290..c2d70a7 100644 --- a/.alias.d/05-debian +++ b/.alias.d/05-debian @@ -1,2 +1,6 @@ alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg" -alias lf='lintian --color always --pedantic -I'
\ No newline at end of file +alias lf='lintian --color always --pedantic -I' + +# mmdebstrap's unshare mode maps sub-UIDs that can't traverse our 0700 +# $HOME/tmp, so force a world-traversable TMPDIR for chroot creation. +mmdebstrap() { TMPDIR=/tmp command mmdebstrap "$@"; }
\ No newline at end of file |
