/etc/init/mounted-tmp.conf doesn't clean /tmp if it's NOT a mountpoint
Bug #587995 reported by
marianitn
This bug report is a duplicate of:
Bug #655447: mounted-tmp uses 'find' -- but if /usr is not yet available it will fail.
Edit
Remove
This bug affects 10 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mountall (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mountall
Version: Ubuntu 10.04 LTS
Arch: i386
Package version: 2.15
After a fresh Lucid install I noted /tmp was not cleaned any more (it did on Karmic). I use a single partition and /tmp is not a separate mountpoint.
Changed in mountall (Ubuntu): | |
status: | New → Confirmed |
Changed in mountall (Ubuntu): | |
status: | Fix Released → Confirmed |
To post a comment you must log in.
I am running Lucid but have separate partitions for /tmp and /usr. After reboot /tmp is not cleared. The script in
/etc/init/ mounted- tmp.conf
fails before the line
find . -depth -xdev $TEXPR $EXCEPT ! -type d -delete
I think this is because "find" is located in /usr/bin, and /usr/bin is not yet mounted.
if I copy /usr/bin/find to /bin the script runs OK and /tmp is being cleared.
So, I think the line
start on mounted MOUNTPOINT=/tmp
has to include a statement such as "if /usr is a separate partition, mount it before running the script". Unfortunately I don't know how to do this in upstart.
A temporary fix is to copy /usr/bin/find to /bin