Comment 1 for bug 834803

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 834803] [NEW] linaro-media-create can't mktemp when TMPDIR set

On Fri, 26 Aug 2011 15:25:37 -0000, Al Grant <email address hidden> wrote:
> Public bug reported:
>
> sudo TMPDIR=/hd/tmp linaro-media-create ...
>
> fails because linaro-hwpack-install picks up TMPDIR and tries to create a temporary in /hd/tmp,
> but that's not around because it's chrooted (see below). One solution might be to have prepare_chroot
> create a suitably named subdirectory of the temporary directory it's going to chroot into.

Yeah, or it could unset TMPDIR when running things in the chroot, as it
doesn't really matter whether we are following the users preference
there as it is inside a temporary dir anyway.

Either approach would work.

Thanks,

James