/etc/init/mounted-tmp.conf doesn't clean /tmp if it's NOT a mountpoint

Bug #587995 reported by marianitn
50
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
Revision history for this message
ejprinz (ejprinz) wrote :

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

Revision history for this message
ejprinz (ejprinz) wrote :

confirmed that copying /usr/bin/find to /bin solves the issue on another Ubuntu 10.04 machine.

Revision history for this message
Andrea Rota (hotzeplotz) wrote :

on Ubuntu 10.04 amd64 with /usr (and /var, and /home, but these should not be relevant) mounted separately from /, the workaround above (copying /usr/bin/find to /bin) works for me too.

Revision history for this message
Jakob Unterwurzacher (jakobunt) wrote :

Guys, you are in the wrong bug. You are looking for
Bug 523587 "/etc/init/mounted-tmp.conf uses find, which is in /usr/bin"

Revision history for this message
Jakob Unterwurzacher (jakobunt) wrote :

I don't know why and when, but this seems to be fixed, tmp is now cleaned on boot here on Lucid.

$ apt-cache policy mountall upstart
mountall:
  Installed: 2.15.3
upstart:
  Installed: 0.6.5-7

Changed in mountall (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
greenmang0 (greenmang0) wrote :

I am using Maverick

abhishek@mango:~$ apt-cache policy mountall upstart
upstart:
  Installed: 0.6.6-3
  Candidate: 0.6.6-3
  Version table:
 *** 0.6.6-3 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status
mountall:
  Installed: 2.19
  Candidate: 2.19
  Version table:
 *** 2.19 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status

But still mounted-tmp.conf fails to clean up /tmp

Changed in mountall (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Maat Ghandi (natty-brew) wrote :

Running 10.04 with /tmp on a separate partition the problem still exists.

I used the work-around posted by ejprinz in the duplicate bug #524196 where he copied /usr/bin/find into /bin. This work-around does work.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.