FS#24360 - [initscripts] Unexpected behaviour when /tmp is a separate partition

Attached to Project: Arch Linux
Opened by Jamie Nguyen (jnguyen) - Friday, 20 May 2011, 16:20 GMT
Last edited by Angel Velasquez (angvp) - Friday, 20 May 2011, 19:25 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The command in /etc/rc.sysinit that is relevant is this one:

/bin/mountpoint -q /tmp || /bin/rm -rf /tmp/* /tmp/.* &>/dev/null

When /tmp is mounted as a separate partition, this command is not run. But judging from the command, it seems this behaviour is actually intended, so please do enlighten me if that is the case.

I realised this when I noticed some leftover files in /tmp after a reboot. Creation of /tmp/.{X11,ICE}-unix directories by /etc/rc.sysinit also fails, as these directories already exist (having not been deleted). As a temporary solution, I have changed the command to this:

[[ -d /tmp/ ]] && /bin/rm -rf /tmp/* /tmp/.* &>/dev/null


Package versions:
- initscripts 2011.05.2-1
This task depends upon

Closed by  Angel Velasquez (angvp)
Friday, 20 May 2011, 19:25 GMT
Reason for closing:  Duplicate

Loading...