linaro-media-create can't mktemp when TMPDIR set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Image Tools |
Fix Released
|
Medium
|
Georgy Redkozubov |
Bug Description
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.
failed to create directory via template `/hd/tmp/
proc umounted
Traceback (most recent call last):
File "/usr/bin/
verified_files, *hwpacks)
File "/usr/lib/
install_
File "/usr/lib/
cmd_
File "/usr/lib/
raise SubcommandNonZe
linaro_
Related branches
- Mattias Backman (community): Approve
- Paul Sokolovsky: Approve
-
Diff: 15 lines (+5/-0)1 file modifiedlinaro-hwpack-install (+5/-0)
Changed in linaro-image-tools: | |
assignee: | nobody → Georgy Redkozubov (georgy-redkozubov) |
status: | Triaged → In Progress |
Changed in linaro-image-tools: | |
status: | In Progress → Fix Committed |
Changed in linaro-image-tools: | |
status: | Fix Committed → Fix Released |
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