[Bug 1083130] Re: mounted-tmp fails to cleanup directories when /tmp contains undeletable files

Steve Langasek steve.langasek at canonical.com
Tue Nov 27 03:54:05 UTC 2012


** Changed in: mountall (Ubuntu)
       Status: New => Triaged

** Changed in: mountall (Ubuntu)
   Importance: Undecided => Low

-- 
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/1083130

Title:
  mounted-tmp fails to cleanup directories when /tmp contains
  undeletable files

Status in “mountall” package in Ubuntu:
  Triaged

Bug description:
  Assumption:
  /tmp is an ext* filesystem.

  Steps to reproduce:
  1. mkdir /tmp/test
  2. touch /tmp/test/case
  3. chattr +a /tmp/test
  4. shutdown -r now

  What happens:
  On start all files but /tmp/test/case are removed. No directories are removed.

  What should happend:
  Every file and directory in /tmp should be removed, except /tmp/test and its content.

  Why it happens:
  /etc/init/mounted-tmp.conf contains these two lines:

      find . -depth -xdev $TEXPR $EXCEPT ! -type d -delete
      find . -depth -xdev $DEXPR $EXCEPT -type d -empty -delete

  The first line fails with a non-zero status because
  unlink("/tmp/test/case") triggers EPERM. AFAIK, all upstart scripts
  implicitly use "set +e", so the second line will never be executed
  (and no directories will be removed).

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: mountall 2.42ubuntu0.1
  ProcVersionSignature: Ubuntu 3.5.0-19.30-generic 3.5.7
  Uname: Linux 3.5.0-19-generic x86_64
  ApportVersion: 2.6.1-0ubuntu6
  Architecture: amd64
  CheckboxSubmission: 23d4ad9b5457fd302024f47052e863ca
  CheckboxSystem: d00f84de8a555815fa1c4660280da308
  Date: Mon Nov 26 12:10:04 2012
  InstallationDate: Installed on 2011-10-17 (405 days ago)
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  MarkForUpload: True
  SourcePackage: mountall
  UpgradeStatus: Upgraded to quantal on 2012-08-25 (92 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/1083130/+subscriptions




More information about the foundations-bugs mailing list