https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/557177
Summary: initctl start mounted-tmp erased all my data in /
I am running a lucid installation in a linux-vserver instance. While fiddling with the really annoing issues regarding upstart and linux-vserver, I executed initctl start mounted-tmp to test if the script was working correctly.
The script took quite long, and after it finished, I discovered that it did not only clean /tmp, but all existing files on the whole machine.
My guess is that the variable $MOUNTPOINT is not set correctly when the script is being started manually, hence this happened in / instead of /tmp:
find . -depth -xdev $TEXPR $EXCEPT ! -type d -delete find . -depth -xdev $DEXPR $EXCEPT -type d -empty -delete
I am currently busy getting all (well, most. meh! ) data back from my backups, so I havent had the time to reproduce the issue, will try do to so as soon as the vm is back up and running in another testmachine, but this might take some days.