Comment 10 for bug 524196

Revision history for this message
ejprinz (ejprinz) wrote :

I've also added this to bug #587995.

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