TMPTIME=0 no longer clears /tmp on boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mountall (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
sysvinit (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
upstart (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: sysvinit
I just checked this today, and even after a fresh reboot, I still have files in /tmp from 12/2009. It appears this setting is ignored now.
roland@
Description: Ubuntu 9.10
Release: 9.10
ProblemType: Bug
Architecture: i386
Date: Thu Feb 18 20:07:48 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Kubuntu 9.10 "Karmic Koala" - Release i386 (20091028.1)
Package: initscripts 2.87dsf-4ubuntu12
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: sysvinit
Uname: Linux 2.6.31-
XsessionErrors:
(polkit-
(<unknown>:2159): GLib-WARNING **: g_set_prgname() called multiple times
Changed in sysvinit (Ubuntu): | |
status: | New → Invalid |
Changed in upstart (Ubuntu): | |
status: | New → Confirmed |
status: | Confirmed → New |
Changed in mountall (Ubuntu): | |
status: | New → Confirmed |
I can confirm this behaviour on Kubuntu 9.10 amd64 release . I have TMPTIME=0 in /etc/default/rcS. But df gives this after reboot:
# df -h
Dateisystem Größe Benut Verf Ben% Eingehängt auf
/dev/sda3 46G 6,5G 38G 15% /
/dev/sda1 92G 68G 20G 78% /tmp
/dev/sda4 543G 113G 403G 22% /home
68G in /tmp!
In my case /tmp is mounted as seperate file system and not pat of the root file system. /dev/sda1 is a spare partition for testing new Ubuntu installations or distribution upgrades. Since there is nothing to be tested at the moment I thought why not using it as /tmp for my production instalation.
Now, when I don't mount /dev/sda1 on /tmp, i.e. /tmp is part of the root file systen everythink works fine and /tmp is cleaned up after reboot.
It would be interesting to hear about your stetup.
I suspect it is a bug in mountall which is actually performing the cleaning job during bootup.