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.
On Fri, 26 Aug 2011 15:25:37 -0000, Al Grant <email address hidden> wrote: hwpack- install picks up TMPDIR and tries to create a temporary in /hd/tmp,
> Public bug reported:
>
> sudo TMPDIR=/hd/tmp linaro-media-create ...
>
> fails because linaro-
> 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