[Bug 1078425] Re: /tmp directory cleaning of folders fails if a file can't be removed
Steve Langasek
steve.langasek at canonical.com
Tue Nov 13 20:44:13 UTC 2012
This seems invalid to me, then. Mountall should not be clearing
immutable bits on the filesystem. Presumably you didn't want them here
in this case, but mountall has no way to know that.
** Changed in: mountall (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mountall in Ubuntu.
https://bugs.launchpad.net/bugs/1078425
Title:
/tmp directory cleaning of folders fails if a file can't be removed
Status in “mountall” package in Ubuntu:
Invalid
Bug description:
I was surprised to discover a ton of directories in my /tmp folder.
Digging into the issue I discovered the following in /var/log/upstart
/mounted-tmp.log:
find: cannot delete `./cmake-bug/cpack_test_case/tmp/378': Operation not permitted
find: cannot delete `./cmake-bug/cpack_test_case/tmp/379': Operation not permitted
find: cannot delete `./cmake-bug/cpack_test_case/tmp/380': Operation not permitted
Looking in dmesg I see:
[ 89.732482] init: mounted-tmp main process (1177) terminated with
status 1
In /etc/init/mounted-tmp.conf we see the following:
# Remove all old files, then all empty directories
find . -depth -xdev $TEXPR $EXCEPT ! -type d -delete
find . -depth -xdev $DEXPR $EXCEPT -type d -empty -delete
So I believe that after the attempt to delete files fails the job
exits and the directories are left behind.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/1078425/+subscriptions
More information about the foundations-bugs
mailing list