FS#24297 - [initscripts] does not clear leftover files on physical /tmp mount

Attached to Project: Arch Linux
Opened by Auguste Pop (Auguste) - Monday, 16 May 2011, 00:06 GMT
Last edited by Allan McRae (Allan) - Monday, 16 May 2011, 00:28 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

Description:
if /tmp is mounted on a physical drive, /etc/rc.sysinit does not clear it.

Additional info:
* package version(s)
2011.05.2-1
* config and/or log files etc.
n/a

Steps to reproduce:
mount /tmp on a physical drive and reboot and check /var/log/boot

changing line 316 from
/bin/mountpoint -q /tmp || /bin/rm -rf /tmp/* /tmp/.* &>/dev/null
to
[[ $(/bin/mountpoint -d /tmp) =~ ^0: ]] || /bin/rm -rf /tmp/* /tmp/.* &>/dev/null
should solve the problem.
i am not a linux expert, and i am not sure if all ramdisks have major device number 0.
i failed to do a git clone, sorry for the rather ugly "patch".
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 16 May 2011, 00:28 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#24279 

Loading...