[Bug 602723] Re: Upstart job to clean /tmp does not run when /usr is on a seperate partion

Steve Langasek steve.langasek at canonical.com
Sat May 19 06:52:16 UTC 2012


*** This bug is a duplicate of bug 655447 ***
    https://bugs.launchpad.net/bugs/655447

** This bug is no longer a duplicate of bug 523587
   /etc/init/mounted-tmp.conf uses find, which is in /usr/bin
** This bug has been marked a duplicate of bug 655447
   mounted-tmp uses 'find' -- but if /usr is not yet available it will fail

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

Title:
  Upstart job to clean /tmp does not run when /usr is on a seperate
  partion

Status in “mountall” package in Ubuntu:
  New

Bug description:
  Binary package hint: mountall

  Hi!

  I discovered this problem when an improper shut down of the server
  before all clients had shutdown on an LTSP system. It seems that the
  client when it logs out deletes files in /tmp that confuse it when
  booting again(that is another bug report). However, this can cause
  problems with /tmp filling up the hard drive with unneeded files that
  should otherwise be deleted on boot.

  Ubuntu forum user tall-male also discovered this. See his post here:

  http://ubuntuforums.org/showthread.php?p=9558012#post9558012

  Here is a summary and fix:

  The automatic cleanup of /tmp at boot time is not working. It wasn't
  working in Ubuntu 9.10, neither in the new 10.04.

  The problem seems to happen using a separate /usr partition.

  According to /etc/init/mounted-tmp.conf, cleaning starts when /tmp is mounted:
  start on mounted MOUNTPOINT=/tmp
  However, the script needs /usr/bin/find to cleanup /tmp. Cleanup is failing since /usr is not there (is not mounted) when cleaning starts. Therefor, /tmp is never cleaned

  Changing it to:
  start on local-filesystems
  solved the problem. The cleanup is only started when all local file systems are mounted.

  I can confirm that this change does work.

  I filed this report first against upstart itself not knowing what
  package it should be filed against.

  https://bugs.launchpad.net/upstart/+bug/602659

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: mountall 2.15
  ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
  Uname: Linux 2.6.32-23-generic i686
  Architecture: i386
  Date: Wed Jul  7 14:52:26 2010
  InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427.1)
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: mountall

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




More information about the foundations-bugs mailing list