Bug 21122 - /tmp is persistent across reboots
/tmp is persistent across reboots
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
6.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-11-20 09:24 EST by Kjetil T. Homme
Modified: 2014-03-16 22:17 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-11-20 13:41:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Kjetil T. Homme 2000-11-20 09:24:22 EST
/tmp isn't cleaned up upon boot.  Here's the trivial patch:

--- rc.sysinit.orig     Mon Nov 20 15:00:51 2000
+++ rc.sysinit  Mon Nov 20 15:23:59 2000
@@ -218,6 +218,9 @@
 mount -f /
 mount -f /proc
 
+# Remove all files in /tmp
+action "Clearing /tmp" rm -rf /tmp/.[^.] /tmp/.??* /tmp/*
+
 # Update quotas if fsck was run on /.
 if [ X"$_RUN_QUOTACHECK" = X1 -a -x /sbin/quotacheck ]; then
        action "Checking root filesystem quotas"  /sbin/quotacheck -v /
Comment 1 Bill Nottingham 2000-11-21 10:54:34 EST
/tmp is cleaned by the tmpwatch cron script.

Note You need to log in before you can comment on or make changes to this bug.