TMP_DIR sanity checks are needed
Bug #961987 reported by
Fathi Boudra
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Image Tools |
Won't Fix
|
Low
|
Unassigned |
Bug Description
l-i-t assumes:
* /tmp is big enough
* /tmp is mounted with dev option
In the case of /tmp is mounted with nodev on a small tmpfs, the image creation will fail:
tmpfs 602M 760K 601M 1% /tmp
tmpfs on /tmp type tmpfs (rw,nosuid,
We'll need sanity checks for this use case.
Changed in linaro-image-tools: | |
assignee: | nobody → Milo Casagrande (milo) |
milestone: | none → 2013.10 |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in linaro-image-tools: | |
milestone: | 2013.10 → 2013.12 |
Changed in linaro-image-tools: | |
milestone: | 2013.12 → 2014.01 |
Changed in linaro-image-tools: | |
milestone: | 2014.01 → 2014.02 |
Changed in linaro-image-tools: | |
milestone: | 2014.02 → 2014.03 |
Changed in linaro-image-tools: | |
milestone: | 2014.03 → 2014.04 |
Changed in linaro-image-tools: | |
assignee: | Milo Casagrande (milo) → nobody |
To post a comment you must log in.
Fathi, do you have any preferences on how to approach this?
I started looking into it, but is a little bit tricky. We need to parse either /etc/mtab or get information out of /sys/ and try to guess if there is a /tmp partition or a tmpfs filesystem mounted. But it looks kind of weak.
Python does not have anything native to get filesystem information, there are some udev bindings (python-pyudev), we might try with those.