[Piuparts-devel] tmpdir defaults

Andreas Beckmann debian at abeckmann.de
Mon Jun 25 07:59:30 UTC 2012


Hi,

what's a reasonable default for the tmpdir setting for piuparts-slave?

The cleanup script (and other reporting scripts, too) expect a separate
subdirectory for piuparts use alone so that cleanup and reporting work.

Alternatively we could also touch a .piuparts.chroot file at the time we
create the chroot directory - and restrict cleanup to directories
containing this file. So in case something interrupts the rm -rf and the
stamp is gone, no further cleanup will be tried.
But it would be much safer for people using /tmp or /var/tmp.
Creating a subdir with a deterministic name in $TMPDIR is also no safe
solution.

Andreas



More information about the Piuparts-devel mailing list